Skip to content

Commit 7bb92c3

Browse files
Release build 4.11.3 [ci release]
1 parent e33364f commit 7bb92c3

File tree

122 files changed

+12686
-3886
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

122 files changed

+12686
-3886
lines changed

.eslintignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
build/
22
docs/
3-
lib/
3+
/lib
44
Sources/ContentScopeScripts/dist/
55
integration-test/extension/contentScope.js
66
integration-test/pages/build
77
packages/special-pages/pages/**/public
8-
unit-test/script-overload-snapshots/
8+
unit-test/script-overload-snapshots/

.eslintrc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@
1212
"$USER_UNPROTECTED_DOMAINS$": "readonly",
1313
"$CONTENT_SCOPE$": "readonly",
1414
"$TRACKER_LOOKUP$": "readonly",
15-
"$BUNDLED_CONFIG$": "readonly"
15+
"$BUNDLED_CONFIG$": "readonly",
16+
"windowsInteropPostMessage": "readonly",
17+
"windowsInteropAddEventListener": "readonly",
18+
"windowsInteropRemoveEventListener": "readonly"
1619
},
1720
"rules": {
1821
"indent": ["error", 4],

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,14 @@ jobs:
4444

4545
- name: Collect commit ranges
4646
run: |
47-
echo "# ${{ github.event.inputs.version }} release\n\n$(git log main --since "$(git show -s --format=%ci $(git rev-list --tags --max-count=1))" --pretty='format:- %s')" > ${{ github.workspace }}-CHANGELOG.txt
47+
echo "CHANGELOG=$(git log main --since "$(git show -s --format=%ci $(git rev-list --tags --max-count=1))" --pretty='format:- %s')" >> $GITHUB_OUTPUT
4848
4949
- name: Create Release
5050
uses: softprops/action-gh-release@v1
5151
env:
5252
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5353
with:
54-
body_path: ${{ github.workspace }}-CHANGELOG.txt
54+
body_path: ${{ steps.version.outputs.CHANGELOG }}
5555
draft: false
5656
prerelease: false
5757
tag_name: ${{ github.event.inputs.version }}

.github/workflows/tests.yml

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ on:
66
- main
77
pull_request:
88

9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
deployments: write
14+
915
jobs:
1016
unit:
1117
runs-on: ${{ matrix.os }}
@@ -26,7 +32,6 @@ jobs:
2632
${{ runner.os }}-node-
2733
- run: npm install
2834
- run: npm run build
29-
- run: npm run docs
3035
- run: npm run lint
3136
- run: npm run lint-no-output-globals
3237
- run: npm run test-unit
@@ -52,6 +57,43 @@ jobs:
5257
sudo apt-get install xvfb
5358
npm install
5459
npm run build
60+
- name: Cache docs output
61+
id: docs-output
62+
uses: actions/cache@v3
63+
with:
64+
path: docs
65+
key: docs-output-${{ github.run_id }}
5566
- name: Install Playwright Browsers
5667
run: npx playwright install --with-deps
5768
- run: npm run test-int-x
69+
- name: Build docs
70+
run: npm run docs
71+
72+
deploy-docs:
73+
runs-on: ubuntu-20.04
74+
needs: integration
75+
if: ${{ github.ref == 'refs/heads/main' }}
76+
environment:
77+
name: github-pages
78+
url: ${{ steps.deployment.outputs.page_url }}
79+
steps:
80+
- uses: actions/checkout@v2
81+
- name: Use Node.js 18
82+
uses: actions/setup-node@v1
83+
with:
84+
node-version: 18.x
85+
- name: Cache build outputs
86+
id: docs-output
87+
uses: actions/cache@v3
88+
with:
89+
path: docs
90+
key: docs-output-${{ github.run_id }}
91+
- name: Setup Github Pages
92+
uses: actions/configure-pages@v2
93+
- name: Upload artifact
94+
uses: actions/upload-pages-artifact@v1
95+
with:
96+
path: docs
97+
- name: Deploy to GitHub Pages
98+
id: deployment
99+
uses: actions/deploy-pages@v1

Package.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ let package = Package(
2020
name: "ContentScopeScripts",
2121
dependencies: [],
2222
resources: [
23-
.process("dist")
23+
.process("dist/contentScope.js"),
24+
.copy("dist/pages"),
2425
]
2526
),
2627
]

Sources/ContentScopeScripts/dist/contentScope.js

Lines changed: 608 additions & 208 deletions
Large diffs are not rendered by default.

build/android/contentScope.js

Lines changed: 608 additions & 208 deletions
Large diffs are not rendered by default.

build/chrome-mv3/inject.js

Lines changed: 608 additions & 208 deletions
Large diffs are not rendered by default.

build/chrome/inject.js

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/contentScope.js

Lines changed: 608 additions & 208 deletions
Large diffs are not rendered by default.

build/firefox/inject.js

Lines changed: 609 additions & 209 deletions
Large diffs are not rendered by default.

build/integration/contentScope.js

Lines changed: 608 additions & 208 deletions
Large diffs are not rendered by default.
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 15 additions & 0 deletions
Loading
Lines changed: 8 additions & 0 deletions
Loading
Lines changed: 12 additions & 0 deletions
Loading
Lines changed: 4 additions & 0 deletions
Loading
Loading

0 commit comments

Comments
 (0)