pusher-js 8.4.0 → 8.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/release.yml +23 -31
- package/.github/workflows/run-tests.yml +0 -2
- package/CHANGELOG.md +13 -0
- package/integration_tests_server/package-lock.json +564 -245
- package/integration_tests_server/package.json +1 -1
- package/package.json +17 -1
- package/spec/config/karma/config.ci.js +18 -18
- package/src/runtimes/web/dom/sockjs/COPYING +0 -11
- package/src/runtimes/web/dom/sockjs/Changelog +0 -147
- package/src/runtimes/web/dom/sockjs/LICENSE-MIT-SockJS +0 -19
- package/src/runtimes/web/dom/sockjs/Makefile +0 -109
- package/src/runtimes/web/dom/sockjs/README.md +0 -388
- package/src/runtimes/web/dom/sockjs/VERSION-GEN +0 -17
- package/src/runtimes/web/dom/sockjs/bin/render.coffee +0 -111
- package/src/runtimes/web/dom/sockjs/bin/run_testling.sh +0 -135
- package/src/runtimes/web/dom/sockjs/package.json +0 -18
- package/src/runtimes/web/dom/sockjs/version +0 -1
|
@@ -7,18 +7,17 @@ jobs:
|
|
|
7
7
|
runs-on: ubuntu-latest
|
|
8
8
|
steps:
|
|
9
9
|
- name: Checkout code
|
|
10
|
-
uses: actions/checkout@
|
|
10
|
+
uses: actions/checkout@v4
|
|
11
11
|
with:
|
|
12
12
|
fetch-depth: 0
|
|
13
13
|
- name: Prepare tag
|
|
14
14
|
id: prepare_tag
|
|
15
15
|
continue-on-error: true
|
|
16
16
|
run: |
|
|
17
|
-
|
|
17
|
+
TAG=v$(jq -r '.version' package.json)
|
|
18
18
|
echo "TAG=$TAG" >> $GITHUB_ENV
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
if [[ $CHECK_TAG ]]; then
|
|
20
|
+
if git tag | grep -q "^${TAG}$"; then
|
|
22
21
|
echo "Skipping because release tag already exists"
|
|
23
22
|
exit 1
|
|
24
23
|
fi
|
|
@@ -26,7 +25,7 @@ jobs:
|
|
|
26
25
|
id: release_output
|
|
27
26
|
if: ${{ steps.prepare_tag.outcome == 'success' }}
|
|
28
27
|
run: |
|
|
29
|
-
echo "
|
|
28
|
+
echo "tag=${{ env.TAG }}" >> $GITHUB_OUTPUT
|
|
30
29
|
outputs:
|
|
31
30
|
tag: ${{ steps.release_output.outputs.tag }}
|
|
32
31
|
|
|
@@ -35,48 +34,41 @@ jobs:
|
|
|
35
34
|
needs: check-release-tag
|
|
36
35
|
if: ${{ needs.check-release-tag.outputs.tag }}
|
|
37
36
|
steps:
|
|
38
|
-
- uses: actions/checkout@
|
|
37
|
+
- uses: actions/checkout@v4
|
|
39
38
|
- name: Prepare tag
|
|
40
39
|
run: |
|
|
41
|
-
|
|
40
|
+
TAG=v$(jq -r '.version' package.json)
|
|
42
41
|
echo "TAG=$TAG" >> $GITHUB_ENV
|
|
43
|
-
- name: Setup git
|
|
44
|
-
run: |
|
|
45
|
-
git config user.email "pusher-ci@pusher.com"
|
|
46
|
-
git config user.name "Pusher CI"
|
|
47
42
|
- name: Prepare description
|
|
48
43
|
run: |
|
|
49
44
|
csplit -s CHANGELOG.md "/##/" {1}
|
|
50
45
|
cat xx01 > CHANGELOG.tmp
|
|
51
46
|
- name: Create Release
|
|
52
|
-
|
|
47
|
+
run: |
|
|
48
|
+
gh release create "${{ env.TAG }}" \
|
|
49
|
+
--title "${{ env.TAG }}" \
|
|
50
|
+
--notes-file CHANGELOG.tmp
|
|
53
51
|
env:
|
|
54
52
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
55
|
-
with:
|
|
56
|
-
tag_name: ${{ env.TAG }}
|
|
57
|
-
release_name: ${{ env.TAG }}
|
|
58
|
-
body_path: CHANGELOG.tmp
|
|
59
|
-
draft: false
|
|
60
|
-
prerelease: false
|
|
61
53
|
|
|
62
54
|
publish-to-npm:
|
|
63
55
|
runs-on: ubuntu-latest
|
|
64
56
|
needs: create-github-release
|
|
65
57
|
steps:
|
|
66
|
-
- uses: actions/checkout@
|
|
67
|
-
- uses:
|
|
68
|
-
id: is-published
|
|
69
|
-
- run: echo "This version is already published on NPM"
|
|
70
|
-
if: ${{ steps.is-published.outputs.published == 'true' }}
|
|
71
|
-
- uses: actions/setup-node@v2
|
|
72
|
-
if: ${{ steps.is-published.outputs.published == 'false' }}
|
|
58
|
+
- uses: actions/checkout@v4
|
|
59
|
+
- uses: actions/setup-node@v4
|
|
73
60
|
with:
|
|
74
|
-
node-version: '
|
|
61
|
+
node-version: '20'
|
|
75
62
|
registry-url: https://registry.npmjs.org/
|
|
76
63
|
- run: npm install
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
64
|
+
- name: Publish if not already published
|
|
65
|
+
run: |
|
|
66
|
+
VERSION=$(jq -r '.version' package.json)
|
|
67
|
+
if npm view pusher-js@$VERSION version 2>/dev/null; then
|
|
68
|
+
echo "Version $VERSION already on npm, skipping."
|
|
69
|
+
else
|
|
70
|
+
npm publish --access public
|
|
71
|
+
fi
|
|
80
72
|
env:
|
|
81
73
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
82
74
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
@@ -85,13 +77,13 @@ jobs:
|
|
|
85
77
|
runs-on: ubuntu-latest
|
|
86
78
|
needs: create-github-release
|
|
87
79
|
steps:
|
|
88
|
-
- uses: actions/checkout@
|
|
80
|
+
- uses: actions/checkout@v4
|
|
89
81
|
- name: Upload to S3
|
|
90
82
|
run: |
|
|
91
83
|
VERSION=$(jq -r '.version' package.json | cut -d'.' -f1,2,3)
|
|
92
84
|
VERSION_MIN=$(jq -r '.version' package.json | cut -d'.' -f1,2)
|
|
93
85
|
|
|
94
|
-
|
|
86
|
+
grep -Eo '^[0-9]+\.[0-9]+\.[0-9]+' <<< $VERSION
|
|
95
87
|
|
|
96
88
|
aws s3 sync dist/web/ s3://${BUCKET_NAME}/latest/ --acl public-read --cache-control max-age=$MAX_AGE
|
|
97
89
|
aws s3 sync dist/worker/ s3://${BUCKET_NAME}/latest/ --acl public-read --cache-control max-age=$MAX_AGE
|
|
@@ -34,8 +34,6 @@ jobs:
|
|
|
34
34
|
INTEGRATION_TESTS_APP_EU_APP_ID: ${{ secrets.INTEGRATION_TESTS_APP_EU_APP_ID }}
|
|
35
35
|
INTEGRATION_TESTS_APP_EU_KEY: ${{ secrets.INTEGRATION_TESTS_APP_EU_KEY }}
|
|
36
36
|
INTEGRATION_TESTS_APP_EU_SECRET: ${{ secrets.INTEGRATION_TESTS_APP_EU_SECRET }}
|
|
37
|
-
BROWSER_STACK_ACCESS_KEY: ${{ secrets.BROWSER_STACK_ACCESS_KEY }}
|
|
38
|
-
BROWSER_STACK_USERNAME: ${{ secrets.BROWSER_STACK_USERNAME }}
|
|
39
37
|
run-node-tests:
|
|
40
38
|
runs-on: ubuntu-latest
|
|
41
39
|
steps:
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 8.4.3
|
|
4
|
+
|
|
5
|
+
- [FIXED] Pin additional transitive dependencies to patched versions to resolve known vulnerabilities (express, qs, body-parser, lodash, minimatch, browserstack-local)
|
|
6
|
+
- [FIXED] Bump integration_tests_server express dependency to resolve CVEs
|
|
7
|
+
|
|
8
|
+
## 8.4.2
|
|
9
|
+
|
|
10
|
+
- [CHANGED] Modernise release workflow: update action versions, replace deprecated flood-io/is-published-on-npm action with inline npm registry check
|
|
11
|
+
|
|
12
|
+
## 8.4.1
|
|
13
|
+
|
|
14
|
+
- [FIXED] Pin transitive dependencies to patched versions to resolve known vulnerabilities (cipher-base, pbkdf2, sha.js, node-forge, js-yaml, compression, on-headers, tmp)
|
|
15
|
+
|
|
3
16
|
## 8.4.0
|
|
4
17
|
|
|
5
18
|
- [CHANGED] Dependencies minor versions updated to latest versions
|