@cocreate/socket-server 1.31.0 → 1.33.0

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.
@@ -1,8 +1,10 @@
1
1
  name: Automated Workflow
2
+
2
3
  on:
3
4
  push:
4
5
  branches:
5
- - master
6
+ - main
7
+
6
8
  jobs:
7
9
  about:
8
10
  runs-on: ubuntu-latest
@@ -18,52 +20,37 @@ jobs:
18
20
  with:
19
21
  direction: overwrite-github
20
22
  githubToken: "${{ secrets.GITHUB }}"
23
+
21
24
  release:
22
25
  runs-on: ubuntu-latest
23
26
  steps:
24
27
  - name: Checkout
25
- uses: actions/checkout@v3
26
- - name: Setup Node.js
27
- uses: actions/setup-node@v3
28
+ uses: actions/checkout@v4
28
29
  with:
29
- node-version: 14
30
- - name: Semantic Release
31
- uses: cycjimmy/semantic-release-action@v3
32
- id: semantic
30
+ fetch-depth: 0 # Required so semantic-release can trace git tags/history
31
+
32
+ - name: Setup Node.js
33
+ uses: actions/setup-node@v4
33
34
  with:
34
- extra_plugins: |
35
- @semantic-release/changelog
35
+ node-version: 22
36
+
37
+ - name: Install Semantic Release & Plugins
38
+ # Installs semantic-release and its plugins on the runner
39
+ run: |
40
+ npm install -g semantic-release \
41
+ @semantic-release/changelog \
42
+ @semantic-release/npm \
43
+ @semantic-release/github \
36
44
  @semantic-release/git
37
- @semantic-release/github
45
+
46
+ - name: Run Semantic Release (Native)
47
+ id: semantic
48
+ # This will automatically pick up your export default config file in the repository root
49
+ run: npx semantic-release
38
50
  env:
39
- GITHUB_TOKEN: "${{ secrets.GITHUB }}"
51
+ GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
40
52
  NPM_TOKEN: "${{ secrets.NPM_TOKEN }}"
53
+
41
54
  outputs:
42
55
  new_release_published: "${{ steps.semantic.outputs.new_release_published }}"
43
- new_release_version: "${{ steps.semantic.outputs.new_release_version }}"
44
- upload:
45
- runs-on: ubuntu-latest
46
- needs: release
47
- if: needs.release.outputs.new_release_published == 'true'
48
- env:
49
- VERSION: "${{ needs.release.outputs.new_release_version }}"
50
- steps:
51
- - name: Checkout
52
- uses: actions/checkout@v3
53
- - name: Setup Node.js
54
- uses: actions/setup-node@v3
55
- with:
56
- node-version: 16
57
- - name: Set npm registry auth
58
- run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
59
- - name: Install dependencies
60
- run: yarn install
61
-
62
- - name: Set Environment Variables
63
- run: |
64
- echo "organization_id=${{ secrets.COCREATE_ORGANIZATION_ID }}" >> $GITHUB_ENV
65
- echo "key=${{ secrets.COCREATE_KEY }}" >> $GITHUB_ENV
66
- echo "host=${{ secrets.COCREATE_HOST }}" >> $GITHUB_ENV
67
- - name: CoCreate Upload
68
- run: coc upload
69
-
56
+ new_release_version: "${{ steps.semantic.outputs.new_release_version }}"
package/CHANGELOG.md CHANGED
@@ -1,3 +1,43 @@
1
+ # [1.33.0](https://github.com/CoCreate-app/CoCreate-socket-server/compare/v1.32.0...v1.33.0) (2026-07-19)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * update branch references from master to main in workflow and configuration files ([2148193](https://github.com/CoCreate-app/CoCreate-socket-server/commit/2148193e0471a193abf8443e6adef3b8b75a4d70))
7
+
8
+
9
+ ### Features
10
+
11
+ * add process-level events for organization eviction and cleanup in SocketServer ([fcbe3a2](https://github.com/CoCreate-app/CoCreate-socket-server/commit/fcbe3a24eb87af3bc9d112cfff31f7e7df2c9af2))
12
+ * enhance SocketServer with server reference caching and improved organization management ([2b8daaf](https://github.com/CoCreate-app/CoCreate-socket-server/commit/2b8daafe0a43497be5144f03af562e11b12a2970))
13
+ * rename bandwidth events to usage for clarity in socket message handling ([8f2f549](https://github.com/CoCreate-app/CoCreate-socket-server/commit/8f2f549c031224a29d7d2daf11636cf8688c75dc))
14
+ * update automated workflow and release configuration for improved semantic release handling ([5b8659f](https://github.com/CoCreate-app/CoCreate-socket-server/commit/5b8659ff2430ad0029bea4b740832917429bb548))
15
+
16
+ # [1.32.0](https://github.com/CoCreate-app/CoCreate-socket-server/compare/v1.31.1...v1.32.0) (2026-07-14)
17
+
18
+
19
+ ### Bug Fixes
20
+
21
+ * remove unused mesh.js file and related socket handling logic ([b0cab03](https://github.com/CoCreate-app/CoCreate-socket-server/commit/b0cab03c4c106c109c0d9c13157ae118f6189ef5))
22
+ * removed post install ([c1462c3](https://github.com/CoCreate-app/CoCreate-socket-server/commit/c1462c3874bac9b24444d69334a8a80ee74d4b4f))
23
+ * semantic version handling. Reorganize .gitignore for improved clarity and structure ([3a04ef8](https://github.com/CoCreate-app/CoCreate-socket-server/commit/3a04ef83a5db2aadd96cee6374c8c19129d3aaf2))
24
+ * update module export to ES6 syntax in release.config.js ([958adb2](https://github.com/CoCreate-app/CoCreate-socket-server/commit/958adb2fc45e6828f494def07e57c654f8bd105e))
25
+ * update package.json and refactor for module compatibility ([618fae4](https://github.com/CoCreate-app/CoCreate-socket-server/commit/618fae440238f9196415c2702e2b13a9d231fb15))
26
+ * update WebSocket import for compatibility across module systems ([a8e270a](https://github.com/CoCreate-app/CoCreate-socket-server/commit/a8e270aaeb71b93d7b0a777dcb7ebafa5008bfa5))
27
+
28
+
29
+ ### Features
30
+
31
+ * implement heartbeat mechanism for socket connections and enhance organization/client management ([568fb3e](https://github.com/CoCreate-app/CoCreate-socket-server/commit/568fb3efc27da677fb298b3035fe7638d7435440))
32
+ * streamline SocketServer initialization and enhance error handling ([3d102e1](https://github.com/CoCreate-app/CoCreate-socket-server/commit/3d102e18718cb3cda41471a12a437d4d9abad402))
33
+
34
+ ## [1.31.1](https://github.com/CoCreate-app/CoCreate-socket-server/compare/v1.31.0...v1.31.1) (2025-05-01)
35
+
36
+
37
+ ### Bug Fixes
38
+
39
+ * update [@cocreate](https://github.com/cocreate) dependencies ([ffe15a3](https://github.com/CoCreate-app/CoCreate-socket-server/commit/ffe15a3838ef5eaddbfec366be07bf410a539c49))
40
+
1
41
  # [1.31.0](https://github.com/CoCreate-app/CoCreate-socket-server/compare/v1.30.0...v1.31.0) (2025-04-30)
2
42
 
3
43
 
package/package.json CHANGED
@@ -1,18 +1,10 @@
1
1
  {
2
2
  "name": "@cocreate/socket-server",
3
- "version": "1.31.0",
3
+ "version": "1.33.0",
4
4
  "description": "CoCreate-socket-server",
5
5
  "keywords": [
6
6
  "cocreate-socket",
7
- "cocreate",
8
- "low-code-framework",
9
- "no-code-framework",
10
- "cocreatejs",
11
- "cocreatejs-component",
12
- "cocreate-framework",
13
- "no-code",
14
7
  "low-code",
15
- "collaborative-framework",
16
8
  "realtime",
17
9
  "realtime-framework",
18
10
  "collaboration",
@@ -23,11 +15,11 @@
23
15
  "publishConfig": {
24
16
  "access": "public"
25
17
  },
26
- "main": "./src/index",
18
+ "type": "module",
19
+ "main": "./src/index.js",
27
20
  "scripts": {
28
21
  "demo": "PORT=5000 node demo/server.js",
29
- "test": "echo \"Error: no test specified\" && exit 1",
30
- "postinstall": "node -e \"const { execSync } = require('child_process'); try { execSync('coc --version', { stdio: 'ignore' }); } catch (error) { try { execSync('npm install -g @cocreate/cli', { stdio: 'inherit' }); console.log('Installed \"@cocreate/cli\" globally.'); } catch (error) { console.error('Failed to install \"@cocreate/cli\" globally:', error); } }\""
22
+ "test": "echo \"Error: no test specified\" && exit 1"
31
23
  },
32
24
  "repository": {
33
25
  "type": "git",
@@ -40,9 +32,9 @@
40
32
  },
41
33
  "homepage": "https://cocreate.app/docs/CoCreate-socket-server",
42
34
  "dependencies": {
43
- "@cocreate/config": "^1.12.5",
44
- "@cocreate/utils": "^1.34.1",
45
- "@cocreate/uuid": "^1.11.4",
46
- "ws": "^7.5.10"
35
+ "@cocreate/config": "^1.13.4",
36
+ "@cocreate/utils": "^1.42.2",
37
+ "@cocreate/uuid": "^1.12.4",
38
+ "ws": "^8.21.0"
47
39
  }
48
40
  }
package/release.config.js CHANGED
@@ -1,6 +1,6 @@
1
- module.exports = {
1
+ export default {
2
2
  dryRun: false,
3
- branches: ["master"],
3
+ branches: ["main"],
4
4
  plugins: [
5
5
  "@semantic-release/commit-analyzer",
6
6
  "@semantic-release/release-notes-generator",
@@ -10,12 +10,20 @@ module.exports = {
10
10
  changelogFile: "CHANGELOG.md",
11
11
  },
12
12
  ],
13
- "@semantic-release/npm",
14
- "@semantic-release/github",
13
+ "@semantic-release/npm",
15
14
  [
16
- "@semantic-release/git",
15
+ "@semantic-release/github",
17
16
  {
17
+ successComment: false,
18
+ failTitle: false,
19
+ },
20
+ ],
21
+ [
22
+ "@semantic-release/git",
23
+ {
24
+ // Only stage and commit the changelog and package.json
18
25
  assets: ["CHANGELOG.md", "package.json"],
26
+ message: "chore(release): ${nextRelease.version} [skip ci]",
19
27
  },
20
28
  ],
21
29
  ],