Skip to content

Commit 318a7ad

Browse files
committed
feat!: rewrite WSC protocol implementation
BREAKING CHANGE: the WSC protocol, SDK, and client APIs have been fully redesigned. All previous integrations must be updated.
1 parent d73af2c commit 318a7ad

67 files changed

Lines changed: 15332 additions & 10319 deletions

Some content is hidden

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

.DS_Store

6 KB
Binary file not shown.

.eslintrc.cjs

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
module.exports = {
2+
root: true,
3+
env: {
4+
node: true,
5+
es2021: true,
6+
},
7+
extends: ['airbnb-base'],
8+
parserOptions: {
9+
ecmaVersion: 'latest',
10+
sourceType: 'module',
11+
},
12+
rules: {
13+
'import/extensions': 'off',
14+
'import/prefer-default-export': 'off',
15+
'class-methods-use-this': 'off',
16+
'no-param-reassign': 'off',
17+
'no-underscore-dangle': 'off',
18+
'no-bitwise': 'off',
19+
'no-plusplus': 'off',
20+
camelcase: 'off',
21+
},
22+
overrides: [
23+
{
24+
files: ['*.js', '*.ts'],
25+
rules: {
26+
'max-len': [
27+
'error',
28+
{
29+
code: 100, // Keep inherited setting (adjust if different)
30+
comments: 200, // Override ONLY for comments
31+
ignoreUrls: true, // Keep other inherited settings
32+
ignoreStrings: true, // Keep inherited behavior
33+
ignoreTemplateLiterals: true, // Keep inherited behavior
34+
},
35+
],
36+
},
37+
},
38+
],
39+
};

.github/workflows/release.yml

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,31 @@ name: Release
22

33
on:
44
push:
5-
branches: [ main, staging ]
6-
7-
permissions:
8-
contents: read # for checkout
5+
branches:
6+
- main
7+
- staging
98

109
jobs:
1110
release:
12-
name: Release
1311
runs-on: ubuntu-latest
12+
1413
permissions:
15-
contents: write # to be able to publish a GitHub release
16-
id-token: write # to enable use of OIDC for npm provenance
14+
contents: write
15+
1716
steps:
18-
- name: Checkout
19-
uses: actions/checkout@v3
17+
- uses: actions/checkout@v4
2018
with:
2119
fetch-depth: 0
22-
- name: Setup Node.js
23-
uses: actions/setup-node@v3
20+
21+
- uses: actions/setup-node@v4
2422
with:
25-
node-version: "lts/*"
26-
- name: Creating a release and publish to NPM...
23+
node-version: 20
24+
registry-url: https://registry.npmjs.org
25+
26+
- run: npm install
27+
28+
- name: Release
29+
run: npx semantic-release
2730
env:
2831
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2932
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
30-
run: npx semantic-release

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# Dependency directories
2-
node_modules/
2+
node_modules/
3+
dist/

.prettierrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"singleQuote": true,
3+
"semi": true,
4+
"printWidth": 100,
5+
"trailingComma": "all",
6+
"preserveChainLineBreaks": true
7+
}

.vscode/settings.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"editor.formatOnPaste": false, // required
3+
"editor.formatOnType": false, // required
4+
"editor.formatOnSave": true, // optional
5+
"editor.formatOnSaveMode": "file", // required to format on save
6+
"vs-code-prettier-eslint.prettierLast": false, // set as "true" to run 'prettier' last not first
7+
"files.insertFinalNewline": true, //Add newline at EoF
8+
"editor.tabSize": 2,
9+
// "editor.defaultFormatter": "esbenp.prettier-vscode",
10+
"editor.codeActionsOnSave": {
11+
"source.fixAll.eslint": "always"
12+
},
13+
"eslint.validate": ["javascript", "typescript"],
14+
"[javascript]": {
15+
// "editor.defaultFormatter": "esbenp.prettier-vscode",
16+
"editor.formatOnSave": true
17+
},
18+
"editor.rulers": [100], // add ruler to max line length
19+
"prettier.singleQuote": true,
20+
"json.format.enable": true,
21+
"javascript.format.enable": true,
22+
"jest.runMode": "on-demand",
23+
"codetogether.virtualCursorJoin": "sharedVirtualCursor"
24+
}

0 commit comments

Comments
 (0)