From fddfdc971134045d1cf58bb50c106239289e109b Mon Sep 17 00:00:00 2001 From: Lukas Saltenas Date: Mon, 24 Nov 2025 18:23:02 +0200 Subject: [PATCH 01/15] chore: publish npm packages under @deepnote org without any other changes --- .github/workflows/release.yml | 2 +- scripts/publish-fork.js | 50 +++++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 scripts/publish-fork.js diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ae1d8e7629..649e1180ed 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -43,7 +43,7 @@ jobs: with: # defined in package.json#scripts version: yarn changesetversion - publish: yarn changeset publish + publish: node scripts/publish-fork.js env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/scripts/publish-fork.js b/scripts/publish-fork.js new file mode 100644 index 0000000000..56d757e25c --- /dev/null +++ b/scripts/publish-fork.js @@ -0,0 +1,50 @@ +const fs = require('fs'); +const path = require('path'); +const { execSync } = require('child_process'); + +const SLATE_PKG_PATH = path.resolve(__dirname, '../packages/slate/package.json'); +const SLATE_REACT_PKG_PATH = path.resolve(__dirname, '../packages/slate-react/package.json'); + +const originalSlatePkg = fs.readFileSync(SLATE_PKG_PATH, 'utf8'); +const originalSlateReactPkg = fs.readFileSync(SLATE_REACT_PKG_PATH, 'utf8'); + +try { + console.log('Mutating package.json files for @deepnote fork publication...'); + + // 1. Mutate packages/slate/package.json + const slatePkg = JSON.parse(originalSlatePkg); + const slateVersion = slatePkg.version; + slatePkg.name = '@deepnote/slate'; + fs.writeFileSync(SLATE_PKG_PATH, JSON.stringify(slatePkg, null, 2) + '\n'); + console.log(`Updated ${SLATE_PKG_PATH} name to @deepnote/slate`); + + // 2. Mutate packages/slate-react/package.json + const slateReactPkg = JSON.parse(originalSlateReactPkg); + slateReactPkg.name = '@deepnote/slate-react'; + + const dependencyString = `npm:@deepnote/slate@${slateVersion}`; + + if (slateReactPkg.dependencies && slateReactPkg.dependencies.slate) { + slateReactPkg.dependencies.slate = dependencyString; + } + if (slateReactPkg.peerDependencies && slateReactPkg.peerDependencies.slate) { + slateReactPkg.peerDependencies.slate = dependencyString; + } + + fs.writeFileSync(SLATE_REACT_PKG_PATH, JSON.stringify(slateReactPkg, null, 2) + '\n'); + console.log(`Updated ${SLATE_REACT_PKG_PATH} name to @deepnote/slate-react and dependencies`); + + // 3. Run changeset publish + console.log('Running yarn changeset publish...'); + execSync('yarn changeset publish', { stdio: 'inherit' }); + +} catch (error) { + console.error('Error during publish-fork script:', error); + process.exit(1); +} finally { + // 4. Restore original package.json files + console.log('Restoring original package.json files...'); + fs.writeFileSync(SLATE_PKG_PATH, originalSlatePkg); + fs.writeFileSync(SLATE_REACT_PKG_PATH, originalSlateReactPkg); + console.log('Restoration complete.'); +} From 697ea2812632aee4205b384d5b8b7a74d2b58b72 Mon Sep 17 00:00:00 2001 From: Lukas Saltenas Date: Mon, 24 Nov 2025 18:26:53 +0200 Subject: [PATCH 02/15] chore: ci workflows should use node 18 --- .github/workflows/ci.yml | 2 +- .github/workflows/comment.yml | 2 +- .github/workflows/release.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 344ccd5fe6..a67c91bb4d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,7 +23,7 @@ jobs: - name: Setup node uses: actions/setup-node@v2 with: - node-version: 16.x + node-version: 18.x cache: yarn key: node16 diff --git a/.github/workflows/comment.yml b/.github/workflows/comment.yml index 0fd62aa73e..c012f99f9a 100644 --- a/.github/workflows/comment.yml +++ b/.github/workflows/comment.yml @@ -45,7 +45,7 @@ jobs: - name: Setup node uses: actions/setup-node@v2 with: - node-version: 16.x + node-version: 18.x cache: yarn registry-url: https://registry.npmjs.org key: node16 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 649e1180ed..9df9a1a133 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,7 +25,7 @@ jobs: - name: Setup node uses: actions/setup-node@v2 with: - node-version: 16.x + node-version: 18.x cache: yarn registry-url: https://registry.npmjs.org key: node16 From a4a28aea74b4a8f242be4d25497e005a2d3b307e Mon Sep 17 00:00:00 2001 From: Lukas Saltenas Date: Mon, 24 Nov 2025 18:29:11 +0200 Subject: [PATCH 03/15] chore: dont use yarn cache --- .github/workflows/ci.yml | 1 - .github/workflows/comment.yml | 1 - .github/workflows/release.yml | 1 - 3 files changed, 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a67c91bb4d..f2b4bae725 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,7 +24,6 @@ jobs: uses: actions/setup-node@v2 with: node-version: 18.x - cache: yarn key: node16 - name: Run ${{ matrix.command }} diff --git a/.github/workflows/comment.yml b/.github/workflows/comment.yml index c012f99f9a..593d2cc376 100644 --- a/.github/workflows/comment.yml +++ b/.github/workflows/comment.yml @@ -46,7 +46,6 @@ jobs: uses: actions/setup-node@v2 with: node-version: 18.x - cache: yarn registry-url: https://registry.npmjs.org key: node16 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9df9a1a133..b23064e0c5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,7 +26,6 @@ jobs: uses: actions/setup-node@v2 with: node-version: 18.x - cache: yarn registry-url: https://registry.npmjs.org key: node16 From 06ded87a9706532ac35664c09972333859265758 Mon Sep 17 00:00:00 2001 From: Lukas Saltenas Date: Mon, 24 Nov 2025 18:31:56 +0200 Subject: [PATCH 04/15] chore: use --openssl-legacy-provider --- .github/workflows/ci.yml | 1 + .github/workflows/comment.yml | 4 ++++ .github/workflows/release.yml | 4 ++++ 3 files changed, 9 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f2b4bae725..fb91ea48db 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,3 +30,4 @@ jobs: run: yarn && yarn build && yarn ${{ matrix.command }} env: CI: true + NODE_OPTIONS: --openssl-legacy-provider diff --git a/.github/workflows/comment.yml b/.github/workflows/comment.yml index 593d2cc376..7c3b78e8cd 100644 --- a/.github/workflows/comment.yml +++ b/.github/workflows/comment.yml @@ -51,9 +51,13 @@ jobs: - name: Install dependencies run: yarn + env: + NODE_OPTIONS: --openssl-legacy-provider - name: Prepare release run: yarn prerelease + env: + NODE_OPTIONS: --openssl-legacy-provider # https://github.com/atlassian/changesets/blob/master/docs/snapshot-releases.md - name: Release to @pr channel diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b23064e0c5..e69b73d239 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,9 +31,13 @@ jobs: - name: Install dependencies run: yarn + env: + NODE_OPTIONS: --openssl-legacy-provider - name: Prepare release run: yarn prerelease + env: + NODE_OPTIONS: --openssl-legacy-provider # https://github.com/changesets/action - name: Create release pull request or Publish to npm From 295864533e86d9d253fcaec31953d01944132b19 Mon Sep 17 00:00:00 2001 From: Lukas Saltenas Date: Mon, 24 Nov 2025 18:40:30 +0200 Subject: [PATCH 05/15] chore: fix custom type --- packages/slate-react/src/custom-types.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/slate-react/src/custom-types.ts b/packages/slate-react/src/custom-types.ts index 9c91b64c1d..c680c7498d 100644 --- a/packages/slate-react/src/custom-types.ts +++ b/packages/slate-react/src/custom-types.ts @@ -9,6 +9,7 @@ declare module 'slate' { } Range: BaseRange & { placeholder?: string + multiBlock?: boolean } } } From 61b8abe3f6bfefc8f2e9533008f499e524ef4bea Mon Sep 17 00:00:00 2001 From: Lukas Saltenas Date: Mon, 24 Nov 2025 18:44:15 +0200 Subject: [PATCH 06/15] chore: run prettier on the newly added file --- scripts/publish-fork.js | 67 +++++++++++++++++++++++------------------ 1 file changed, 37 insertions(+), 30 deletions(-) diff --git a/scripts/publish-fork.js b/scripts/publish-fork.js index 56d757e25c..5ec6031b81 100644 --- a/scripts/publish-fork.js +++ b/scripts/publish-fork.js @@ -1,50 +1,57 @@ -const fs = require('fs'); -const path = require('path'); -const { execSync } = require('child_process'); +const fs = require('fs') +const path = require('path') +const { execSync } = require('child_process') -const SLATE_PKG_PATH = path.resolve(__dirname, '../packages/slate/package.json'); -const SLATE_REACT_PKG_PATH = path.resolve(__dirname, '../packages/slate-react/package.json'); +const SLATE_PKG_PATH = path.resolve(__dirname, '../packages/slate/package.json') +const SLATE_REACT_PKG_PATH = path.resolve( + __dirname, + '../packages/slate-react/package.json' +) -const originalSlatePkg = fs.readFileSync(SLATE_PKG_PATH, 'utf8'); -const originalSlateReactPkg = fs.readFileSync(SLATE_REACT_PKG_PATH, 'utf8'); +const originalSlatePkg = fs.readFileSync(SLATE_PKG_PATH, 'utf8') +const originalSlateReactPkg = fs.readFileSync(SLATE_REACT_PKG_PATH, 'utf8') try { - console.log('Mutating package.json files for @deepnote fork publication...'); + console.log('Mutating package.json files for @deepnote fork publication...') // 1. Mutate packages/slate/package.json - const slatePkg = JSON.parse(originalSlatePkg); - const slateVersion = slatePkg.version; - slatePkg.name = '@deepnote/slate'; - fs.writeFileSync(SLATE_PKG_PATH, JSON.stringify(slatePkg, null, 2) + '\n'); - console.log(`Updated ${SLATE_PKG_PATH} name to @deepnote/slate`); + const slatePkg = JSON.parse(originalSlatePkg) + const slateVersion = slatePkg.version + slatePkg.name = '@deepnote/slate' + fs.writeFileSync(SLATE_PKG_PATH, JSON.stringify(slatePkg, null, 2) + '\n') + console.log(`Updated ${SLATE_PKG_PATH} name to @deepnote/slate`) // 2. Mutate packages/slate-react/package.json - const slateReactPkg = JSON.parse(originalSlateReactPkg); - slateReactPkg.name = '@deepnote/slate-react'; - - const dependencyString = `npm:@deepnote/slate@${slateVersion}`; + const slateReactPkg = JSON.parse(originalSlateReactPkg) + slateReactPkg.name = '@deepnote/slate-react' + + const dependencyString = `npm:@deepnote/slate@${slateVersion}` if (slateReactPkg.dependencies && slateReactPkg.dependencies.slate) { - slateReactPkg.dependencies.slate = dependencyString; + slateReactPkg.dependencies.slate = dependencyString } if (slateReactPkg.peerDependencies && slateReactPkg.peerDependencies.slate) { - slateReactPkg.peerDependencies.slate = dependencyString; + slateReactPkg.peerDependencies.slate = dependencyString } - fs.writeFileSync(SLATE_REACT_PKG_PATH, JSON.stringify(slateReactPkg, null, 2) + '\n'); - console.log(`Updated ${SLATE_REACT_PKG_PATH} name to @deepnote/slate-react and dependencies`); + fs.writeFileSync( + SLATE_REACT_PKG_PATH, + JSON.stringify(slateReactPkg, null, 2) + '\n' + ) + console.log( + `Updated ${SLATE_REACT_PKG_PATH} name to @deepnote/slate-react and dependencies` + ) // 3. Run changeset publish - console.log('Running yarn changeset publish...'); - execSync('yarn changeset publish', { stdio: 'inherit' }); - + console.log('Running yarn changeset publish...') + execSync('yarn changeset publish', { stdio: 'inherit' }) } catch (error) { - console.error('Error during publish-fork script:', error); - process.exit(1); + console.error('Error during publish-fork script:', error) + process.exit(1) } finally { // 4. Restore original package.json files - console.log('Restoring original package.json files...'); - fs.writeFileSync(SLATE_PKG_PATH, originalSlatePkg); - fs.writeFileSync(SLATE_REACT_PKG_PATH, originalSlateReactPkg); - console.log('Restoration complete.'); + console.log('Restoring original package.json files...') + fs.writeFileSync(SLATE_PKG_PATH, originalSlatePkg) + fs.writeFileSync(SLATE_REACT_PKG_PATH, originalSlateReactPkg) + console.log('Restoration complete.') } From 017df66f3ccfdf0cd954d8c91c24c5dd1ef7d5ca Mon Sep 17 00:00:00 2001 From: Lukas Saltenas Date: Mon, 24 Nov 2025 18:54:52 +0200 Subject: [PATCH 07/15] chore: bump node version to at least be officially supported --- .github/workflows/ci.yml | 4 ++-- .github/workflows/comment.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- config/typescript/tsconfig.json | 3 +-- 4 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fb91ea48db..cc7d71b2dc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,8 +23,8 @@ jobs: - name: Setup node uses: actions/setup-node@v2 with: - node-version: 18.x - key: node16 + node-version: 20.x + key: node20 - name: Run ${{ matrix.command }} run: yarn && yarn build && yarn ${{ matrix.command }} diff --git a/.github/workflows/comment.yml b/.github/workflows/comment.yml index 7c3b78e8cd..76a4d3b59b 100644 --- a/.github/workflows/comment.yml +++ b/.github/workflows/comment.yml @@ -45,9 +45,9 @@ jobs: - name: Setup node uses: actions/setup-node@v2 with: - node-version: 18.x + node-version: 20.x registry-url: https://registry.npmjs.org - key: node16 + key: node20 - name: Install dependencies run: yarn diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e69b73d239..426d123961 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,9 +25,9 @@ jobs: - name: Setup node uses: actions/setup-node@v2 with: - node-version: 18.x + node-version: 20.x registry-url: https://registry.npmjs.org - key: node16 + key: node20 - name: Install dependencies run: yarn diff --git a/config/typescript/tsconfig.json b/config/typescript/tsconfig.json index 5f3f64222a..b68e12dace 100644 --- a/config/typescript/tsconfig.json +++ b/config/typescript/tsconfig.json @@ -11,7 +11,6 @@ "resolveJsonModule": true, "sourceMap": true, "strict": true, - "suppressImplicitAnyIndexErrors": true, "target": "esnext" } -} +} \ No newline at end of file From ac4f391ab360273fba88726ca766be0a03e32c89 Mon Sep 17 00:00:00 2001 From: Lukas Saltenas Date: Mon, 24 Nov 2025 18:57:01 +0200 Subject: [PATCH 08/15] chore: refine usage of openssl-legacy-provider --- .github/workflows/ci.yml | 1 - .github/workflows/comment.yml | 4 ---- .github/workflows/release.yml | 4 ---- package.json | 6 +++--- 4 files changed, 3 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cc7d71b2dc..8d7402547a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,4 +30,3 @@ jobs: run: yarn && yarn build && yarn ${{ matrix.command }} env: CI: true - NODE_OPTIONS: --openssl-legacy-provider diff --git a/.github/workflows/comment.yml b/.github/workflows/comment.yml index 76a4d3b59b..5601e53526 100644 --- a/.github/workflows/comment.yml +++ b/.github/workflows/comment.yml @@ -51,13 +51,9 @@ jobs: - name: Install dependencies run: yarn - env: - NODE_OPTIONS: --openssl-legacy-provider - name: Prepare release run: yarn prerelease - env: - NODE_OPTIONS: --openssl-legacy-provider # https://github.com/atlassian/changesets/blob/master/docs/snapshot-releases.md - name: Release to @pr channel diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 426d123961..18a063f0a5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,13 +31,9 @@ jobs: - name: Install dependencies run: yarn - env: - NODE_OPTIONS: --openssl-legacy-provider - name: Prepare release run: yarn prerelease - env: - NODE_OPTIONS: --openssl-legacy-provider # https://github.com/changesets/action - name: Create release pull request or Publish to npm diff --git a/package.json b/package.json index 96f537110a..9510c3e3a3 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ ], "scripts": { "build": "yarn build:rollup && yarn build:next", - "build:next": "cd ./site && next build && next export", + "build:next": "cd ./site && NODE_OPTIONS=--openssl-legacy-provider next build && NODE_OPTIONS=--openssl-legacy-provider next export", "build:rollup": "rollup --config ./config/rollup/rollup.config.js", "changesetversion": "yarn changeset version && yarn install && git add .", "clean": "rimraf './packages/*/{dist,lib,node_modules}' './site/{.next,out}'", @@ -26,7 +26,7 @@ "release:next": "yarn prerelease && lerna publish --dist-tag next --force-publish", "release:experimental": "yarn prerelease && lerna publish --dist-tag experimental", "internal:release:next": "yarn prerelease && yarn changeset publish --tag next", - "serve": "cd ./site && next", + "serve": "cd ./site && NODE_OPTIONS=--openssl-legacy-provider next", "start": "npm-run-all --parallel --print-label watch serve", "test": "yarn run test:mocha && yarn run test:jest", "test:custom": "mocha --require ./config/babel/register.cjs ./packages/slate/test/index.js", @@ -123,4 +123,4 @@ ] }, "packageManager": "yarn@4.0.2" -} +} \ No newline at end of file From 308e7bcebef6f54c370d86b9afe931112a772f7a Mon Sep 17 00:00:00 2001 From: Lukas Saltenas Date: Mon, 24 Nov 2025 19:07:20 +0200 Subject: [PATCH 09/15] revert: back to using node 16 --- .github/workflows/ci.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8d7402547a..fd8158e206 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,8 +23,8 @@ jobs: - name: Setup node uses: actions/setup-node@v2 with: - node-version: 20.x - key: node20 + node-version: 16.x + key: node16 - name: Run ${{ matrix.command }} run: yarn && yarn build && yarn ${{ matrix.command }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 18a063f0a5..0c474c905a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,9 +25,9 @@ jobs: - name: Setup node uses: actions/setup-node@v2 with: - node-version: 20.x + node-version: 16.x registry-url: https://registry.npmjs.org - key: node20 + key: node16 - name: Install dependencies run: yarn From 939f8ab14fc9252b77d24b1c90d22ac8a5a62a2a Mon Sep 17 00:00:00 2001 From: Lukas Saltenas Date: Mon, 24 Nov 2025 19:12:22 +0200 Subject: [PATCH 10/15] revert: dont supress implicit any index errors --- config/typescript/tsconfig.json | 1 + 1 file changed, 1 insertion(+) diff --git a/config/typescript/tsconfig.json b/config/typescript/tsconfig.json index b68e12dace..16f99ad907 100644 --- a/config/typescript/tsconfig.json +++ b/config/typescript/tsconfig.json @@ -11,6 +11,7 @@ "resolveJsonModule": true, "sourceMap": true, "strict": true, + "suppressImplicitAnyIndexErrors": true, "target": "esnext" } } \ No newline at end of file From f70d008f1955e2f8adb22b2b7842a4a0b91a8f05 Mon Sep 17 00:00:00 2001 From: Lukas Saltenas Date: Mon, 24 Nov 2025 19:12:47 +0200 Subject: [PATCH 11/15] Revert "chore: refine usage of openssl-legacy-provider" This reverts commit ac4f391ab360273fba88726ca766be0a03e32c89. --- .github/workflows/ci.yml | 1 + .github/workflows/comment.yml | 4 ++++ .github/workflows/release.yml | 4 ++++ package.json | 6 +++--- 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fd8158e206..41846db3e8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,3 +30,4 @@ jobs: run: yarn && yarn build && yarn ${{ matrix.command }} env: CI: true + NODE_OPTIONS: --openssl-legacy-provider diff --git a/.github/workflows/comment.yml b/.github/workflows/comment.yml index 5601e53526..76a4d3b59b 100644 --- a/.github/workflows/comment.yml +++ b/.github/workflows/comment.yml @@ -51,9 +51,13 @@ jobs: - name: Install dependencies run: yarn + env: + NODE_OPTIONS: --openssl-legacy-provider - name: Prepare release run: yarn prerelease + env: + NODE_OPTIONS: --openssl-legacy-provider # https://github.com/atlassian/changesets/blob/master/docs/snapshot-releases.md - name: Release to @pr channel diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0c474c905a..a1e4539b55 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,9 +31,13 @@ jobs: - name: Install dependencies run: yarn + env: + NODE_OPTIONS: --openssl-legacy-provider - name: Prepare release run: yarn prerelease + env: + NODE_OPTIONS: --openssl-legacy-provider # https://github.com/changesets/action - name: Create release pull request or Publish to npm diff --git a/package.json b/package.json index 9510c3e3a3..96f537110a 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ ], "scripts": { "build": "yarn build:rollup && yarn build:next", - "build:next": "cd ./site && NODE_OPTIONS=--openssl-legacy-provider next build && NODE_OPTIONS=--openssl-legacy-provider next export", + "build:next": "cd ./site && next build && next export", "build:rollup": "rollup --config ./config/rollup/rollup.config.js", "changesetversion": "yarn changeset version && yarn install && git add .", "clean": "rimraf './packages/*/{dist,lib,node_modules}' './site/{.next,out}'", @@ -26,7 +26,7 @@ "release:next": "yarn prerelease && lerna publish --dist-tag next --force-publish", "release:experimental": "yarn prerelease && lerna publish --dist-tag experimental", "internal:release:next": "yarn prerelease && yarn changeset publish --tag next", - "serve": "cd ./site && NODE_OPTIONS=--openssl-legacy-provider next", + "serve": "cd ./site && next", "start": "npm-run-all --parallel --print-label watch serve", "test": "yarn run test:mocha && yarn run test:jest", "test:custom": "mocha --require ./config/babel/register.cjs ./packages/slate/test/index.js", @@ -123,4 +123,4 @@ ] }, "packageManager": "yarn@4.0.2" -} \ No newline at end of file +} From 13106ef3e82bdc7c9db5115259b2def7209b0818 Mon Sep 17 00:00:00 2001 From: Lukas Saltenas Date: Mon, 24 Nov 2025 19:12:59 +0200 Subject: [PATCH 12/15] Revert "chore: use --openssl-legacy-provider" This reverts commit 06ded87a9706532ac35664c09972333859265758. --- .github/workflows/ci.yml | 1 - .github/workflows/comment.yml | 4 ---- .github/workflows/release.yml | 4 ---- 3 files changed, 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 41846db3e8..fd8158e206 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,4 +30,3 @@ jobs: run: yarn && yarn build && yarn ${{ matrix.command }} env: CI: true - NODE_OPTIONS: --openssl-legacy-provider diff --git a/.github/workflows/comment.yml b/.github/workflows/comment.yml index 76a4d3b59b..5601e53526 100644 --- a/.github/workflows/comment.yml +++ b/.github/workflows/comment.yml @@ -51,13 +51,9 @@ jobs: - name: Install dependencies run: yarn - env: - NODE_OPTIONS: --openssl-legacy-provider - name: Prepare release run: yarn prerelease - env: - NODE_OPTIONS: --openssl-legacy-provider # https://github.com/atlassian/changesets/blob/master/docs/snapshot-releases.md - name: Release to @pr channel diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a1e4539b55..0c474c905a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,13 +31,9 @@ jobs: - name: Install dependencies run: yarn - env: - NODE_OPTIONS: --openssl-legacy-provider - name: Prepare release run: yarn prerelease - env: - NODE_OPTIONS: --openssl-legacy-provider # https://github.com/changesets/action - name: Create release pull request or Publish to npm From e953b5f52e181eaa5b1def2c16247a8cad0af5fc Mon Sep 17 00:00:00 2001 From: Lukas Saltenas Date: Mon, 24 Nov 2025 19:15:04 +0200 Subject: [PATCH 13/15] revert: yarn ignore node --- .github/workflows/ci.yml | 1 + .github/workflows/release.yml | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fd8158e206..abd2800179 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,3 +30,4 @@ jobs: run: yarn && yarn build && yarn ${{ matrix.command }} env: CI: true + YARN_IGNORE_NODE: 1 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0c474c905a..ea8df0f7c4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,9 +31,13 @@ jobs: - name: Install dependencies run: yarn + env: + YARN_IGNORE_NODE: 1 - name: Prepare release run: yarn prerelease + env: + YARN_IGNORE_NODE: 1 # https://github.com/changesets/action - name: Create release pull request or Publish to npm From 07b8c0248206e44f63ba12b613afc909a0e5bea9 Mon Sep 17 00:00:00 2001 From: Lukas Saltenas Date: Mon, 24 Nov 2025 19:17:40 +0200 Subject: [PATCH 14/15] chore: fixup tsconfig --- config/typescript/tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/typescript/tsconfig.json b/config/typescript/tsconfig.json index 16f99ad907..5f3f64222a 100644 --- a/config/typescript/tsconfig.json +++ b/config/typescript/tsconfig.json @@ -14,4 +14,4 @@ "suppressImplicitAnyIndexErrors": true, "target": "esnext" } -} \ No newline at end of file +} From 5b123eeac53126ee26de1dac3178903be3bcbb41 Mon Sep 17 00:00:00 2001 From: Lukas Saltenas Date: Mon, 24 Nov 2025 19:23:54 +0200 Subject: [PATCH 15/15] chore: change linking strategy --- .yarnrc.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.yarnrc.yml b/.yarnrc.yml index 5a46900a2d..53a05e5193 100644 --- a/.yarnrc.yml +++ b/.yarnrc.yml @@ -1,5 +1,7 @@ compressionLevel: mixed +nodeLinker: node-modules + enableGlobalCache: false packageExtensions: