@localazy/strapi-plugin 0.2.6 → 0.2.10

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/.eslintrc CHANGED
@@ -1,5 +1,4 @@
1
1
  {
2
- "extends": "@strapi-community",
3
2
  "env": {
4
3
  "jest/globals": true,
5
4
  "es6": true,
@@ -16,7 +16,7 @@ jobs:
16
16
  - name: Setup Node
17
17
  uses: actions/setup-node@v4
18
18
  with:
19
- node-version: 16
19
+ node-version: 20
20
20
 
21
21
  - name: Install dependencies
22
22
  run: npm ci
@@ -27,6 +27,7 @@ jobs:
27
27
  steps:
28
28
  - uses: localazy/release/prepare@v2
29
29
  with:
30
+ node-version: 20
30
31
  app-id: ${{ secrets.AUTH_APP_ID }}
31
32
  app-key: ${{ secrets.AUTH_APP_KEY }}
32
33
 
@@ -38,6 +39,7 @@ jobs:
38
39
  steps:
39
40
  - uses: localazy/release/publish@v2
40
41
  with:
42
+ node-version: 20
41
43
  app-id: ${{ secrets.AUTH_APP_ID }}
42
44
  app-key: ${{ secrets.AUTH_APP_KEY }}
43
45
  npm-publish: public
package/.nvmrc CHANGED
@@ -1 +1 @@
1
- 18
1
+ 20
package/CHANGELOG.md CHANGED
@@ -1,3 +1,18 @@
1
+ ## 0.2.10 (2024-09-05)
2
+
3
+ ### 🧰 Other Commits
4
+
5
+ - **QA:** switch to Node 20 in GH actions ([8ce744a](https://github.com/localazy/strapi-plugin/commit/8ce744a))
6
+ - **release:** switch to Node 20 in GH actions ([1760ff8](https://github.com/localazy/strapi-plugin/commit/1760ff8))
7
+ - add support for Node 20 ([041c0af](https://github.com/localazy/strapi-plugin/commit/041c0af))
8
+ - support Node 20 ([883c3ef](https://github.com/localazy/strapi-plugin/commit/883c3ef))
9
+
10
+ ## 0.2.9 (2024-08-06)
11
+
12
+ ## 0.2.8 (2024-08-06)
13
+
14
+ ## 0.2.7 (2024-08-06)
15
+
1
16
  ## <small>0.2.6 (2024-05-09)</small>
2
17
 
3
18
  * 🔧 conf: update .nvmrc node version to v18 ([78f1e4a](https://github.com/localazy/strapi-plugin/commit/78f1e4a))
@@ -8,7 +8,23 @@ export default class AlertsService {
8
8
  _streamIdentifier;
9
9
 
10
10
  constructor() {
11
- this._client = SocketIoClient.connect(process.env.STRAPI_ADMIN_BACKEND_URL);
11
+ const uri = process.env.STRAPI_ADMIN_BACKEND_URL;
12
+ let path = '/socket.io'; // SocketIoClient defaults to this path too if it is not defined
13
+
14
+ // If uri is not undefined nor empty, use the correct path to Strapi's socket
15
+ if (uri !== undefined && uri.length > 0) {
16
+ try {
17
+ const { pathname } = new URL(
18
+ uri,
19
+ window.location.href // Mandatory in case uri is not a complete URL (e.g. /cms)
20
+ );
21
+ path = `${pathname}${pathname.endsWith('/') ? '' : '/'}socket.io`;
22
+ } catch (e) {
23
+ console.error(e);
24
+ }
25
+ }
26
+
27
+ this._client = SocketIoClient.connect(uri, { path });
12
28
  }
13
29
 
14
30
  setStreamIdentifier(streamIdentifier) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@localazy/strapi-plugin",
3
- "version": "0.2.6",
3
+ "version": "0.2.10",
4
4
  "description": "The official Strapi Plugin by Localazy.",
5
5
  "strapi": {
6
6
  "name": "localazy",
@@ -24,11 +24,11 @@
24
24
  "email": "team@localazy.com",
25
25
  "url": "https://localazy.com"
26
26
  },
27
- "bin": "./install/index.mjs",
28
27
  "repository": {
29
28
  "type": "git",
30
29
  "url": "git@github.com:localazy/strapi-plugin.git"
31
30
  },
31
+ "bin": "./install/index.mjs",
32
32
  "scripts": {
33
33
  "test": "jest --config ./jest.config.js",
34
34
  "test:watch": "jest --watch --config ./jest.config.js"
@@ -61,12 +61,14 @@
61
61
  "devDependencies": {
62
62
  "@babel/plugin-transform-modules-commonjs": "^7.20.11",
63
63
  "@localazy/conventional-changelog-preset": "^1.2.8",
64
- "@strapi-community/eslint-config": "^0.4.3",
65
- "conventional-changelog": "^6.0.0",
66
- "conventional-changelog-cli": "^5.0.0",
64
+ "@strapi/eslint-config": "^0.2.1",
65
+ "conventional-changelog": "^5.1.0",
66
+ "conventional-changelog-cli": "^4.1.0",
67
67
  "conventional-changelog-writer": "github:localazy/conventional-changelog-writer",
68
68
  "conventional-recommended-bump": "^9.0.0",
69
- "eslint": "^8.32.0",
69
+ "eslint": "^8.57.0",
70
+ "eslint-config-prettier": "^8.10.0",
71
+ "eslint-plugin-import": "^2.30.0",
70
72
  "eslint-plugin-jest": "^27.2.1",
71
73
  "jest": "^29.6.4"
72
74
  },
@@ -78,7 +80,7 @@
78
80
  }
79
81
  ],
80
82
  "engines": {
81
- "node": ">=14.19.1 <=18.x.x",
83
+ "node": ">=14.19.1 <=20.x.x",
82
84
  "npm": ">=6.0.0"
83
85
  },
84
86
  "browser": {