Skip to content

Commit 40ddec4

Browse files
authored
build(deps): upgrade package dependencies (#2654)
1 parent cb51b28 commit 40ddec4

120 files changed

Lines changed: 1771 additions & 803 deletions

File tree

Some content is hidden

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

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ env:
1010
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
1111
NX_SELF_HOSTED_REMOTE_CACHE_ACCESS_TOKEN: ${{ secrets.NX_SELF_HOSTED_REMOTE_CACHE_ACCESS_TOKEN }}
1212
NX_SELF_HOSTED_REMOTE_CACHE_SERVER: ${{ secrets.NX_SELF_HOSTED_REMOTE_CACHE_SERVER }}
13+
pnpm_config_store_dir: ./node_modules/.pnpm-store
1314

1415
jobs:
1516
build:

.github/workflows/fresh-install-tests.yml

Lines changed: 34 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,26 @@
11
name: Fresh Install Tests
22

3-
# Periodically tests BlockNote with the latest versions of its dependencies
4-
# (within declared ranges), without a lockfile. This catches breakage when a
3+
# Periodically tests BlockNote with the latest versions of its production
4+
# dependencies (within declared semver ranges). This catches breakage when a
55
# new release of a dep like @tiptap/* or prosemirror-* ships and conflicts
66
# with BlockNote's declared ranges — the kind of failure a user would hit when
77
# running `npm install @blocknote/react` in a fresh project.
88
#
9-
# DevDependencies (vitest, vite, typescript, etc.) are still bounded by their
10-
# declared ranges in package.json; only prod/peer deps get freshly resolved.
9+
# Only production dependencies of published (non-private) packages are updated.
10+
# DevDependencies (vitest, vite, typescript, etc.) stay pinned to the lockfile,
11+
# so test tooling churn doesn't cause false positives.
1112

1213
on:
14+
push:
15+
branches:
16+
- package-upgrades
1317
schedule:
1418
- cron: "0 2 * * *" # Daily at 02:00 UTC
1519
workflow_dispatch: # Allow manual runs
1620

1721
env:
1822
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
23+
pnpm_config_store_dir: ./node_modules/.pnpm-store
1924

2025
jobs:
2126
fresh-install-unit-tests:
@@ -35,19 +40,32 @@ jobs:
3540
uses: actions/setup-node@v6
3641
with:
3742
node-version-file: ".nvmrc"
38-
# Intentionally no pnpm cache — we want a genuinely fresh install
39-
40-
- id: remove_lockfile
41-
name: Remove lockfile to force fresh dep resolution
42-
# Removing pnpm-lock.yaml causes pnpm to resolve all dependencies to
43-
# the latest versions that satisfy the ranges declared in package.json
44-
# (including pnpm-workspace.yaml overrides). This is equivalent to what
45-
# a new user experiences when installing BlockNote in a blank project.
46-
run: rm pnpm-lock.yaml
43+
# Intentionally no pnpm cache — we want fresh prod dep resolution
4744

4845
- id: install_dependencies
4946
name: Install dependencies
50-
run: pnpm install --no-frozen-lockfile
47+
run: pnpm install
48+
49+
- id: update_prod_deps
50+
name: Update prod deps of published packages
51+
# Resolves production dependencies of every published (non-private)
52+
# workspace package to the latest version within their declared semver
53+
# ranges. This simulates what a user gets when running
54+
# `npm install @blocknote/react` in a fresh project.
55+
# DevDependencies are left at their lockfile versions.
56+
run: |
57+
FILTERS=$(node -e "
58+
const fs = require('fs');
59+
const path = require('path');
60+
fs.readdirSync('packages').forEach(dir => {
61+
try {
62+
const pkg = JSON.parse(fs.readFileSync(path.join('packages', dir, 'package.json'), 'utf8'));
63+
if (!pkg.private && pkg.name) process.stdout.write('--filter ' + pkg.name + ' ');
64+
} catch {}
65+
});
66+
")
67+
echo "Updating prod deps for: $FILTERS"
68+
eval pnpm update --prod $FILTERS
5169
5270
- id: build_packages
5371
name: Build packages
@@ -84,10 +102,10 @@ jobs:
84102
failed_step="Install pnpm"
85103
elif [ "${{ steps.setup_node.outcome }}" = "failure" ]; then
86104
failed_step="Setup Node.js"
87-
elif [ "${{ steps.remove_lockfile.outcome }}" = "failure" ]; then
88-
failed_step="Remove lockfile to force fresh dep resolution"
89105
elif [ "${{ steps.install_dependencies.outcome }}" = "failure" ]; then
90106
failed_step="Install dependencies"
107+
elif [ "${{ steps.update_prod_deps.outcome }}" = "failure" ]; then
108+
failed_step="Update prod deps of published packages"
91109
elif [ "${{ steps.build_packages.outcome }}" = "failure" ]; then
92110
failed_step="Build packages"
93111
elif [ "${{ steps.run_unit_tests.outcome }}" = "failure" ]; then

.github/workflows/publish.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ env:
1717
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
1818
NX_SELF_HOSTED_REMOTE_CACHE_ACCESS_TOKEN: ${{ secrets.NX_SELF_HOSTED_REMOTE_CACHE_ACCESS_TOKEN }}
1919
NX_SELF_HOSTED_REMOTE_CACHE_SERVER: ${{ secrets.NX_SELF_HOSTED_REMOTE_CACHE_SERVER }}
20+
pnpm_config_store_dir: ./node_modules/.pnpm-store
2021

2122
jobs:
2223
publish:

docs/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@
5252
"@react-email/render": "^2.0.4",
5353
"@react-pdf/renderer": "^4.3.0",
5454
"@sentry/nextjs": "^10.34.0",
55-
"@shikijs/core": "^3.19.0",
56-
"@shikijs/engine-javascript": "^3.19.0",
57-
"@shikijs/langs-precompiled": "^3.19.0",
58-
"@shikijs/themes": "^3.19.0",
59-
"@shikijs/types": "^3.19.0",
55+
"@shikijs/core": "^4",
56+
"@shikijs/engine-javascript": "^4",
57+
"@shikijs/langs-precompiled": "^4",
58+
"@shikijs/themes": "^4",
59+
"@shikijs/types": "^4",
6060
"@tiptap/core": "^3.13.0",
6161
"@uppy/core": "^3.13.1",
6262
"@uppy/dashboard": "^3.9.1",
@@ -94,7 +94,7 @@
9494
"react-icons": "^5.5.0",
9595
"react-use-measure": "^2.1.7",
9696
"scroll-into-view-if-needed": "^3.1.0",
97-
"shiki": "^3.21.0",
97+
"shiki": "^4",
9898
"tailwind-merge": "^3.4.0",
9999
"y-partykit": "^0.0.25",
100100
"yjs": "^13.6.27",
@@ -131,4 +131,4 @@
131131
"tw-animate-css": "^1.4.0",
132132
"typescript": "^5.9.3"
133133
}
134-
}
134+
}

examples/01-basic/01-minimal/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@
2626
"@types/react": "^19.2.3",
2727
"@types/react-dom": "^19.2.3",
2828
"@vitejs/plugin-react": "^6.0.1",
29-
"vite": "^8.0.3"
29+
"vite": "^8.0.8"
3030
}
3131
}

examples/01-basic/02-block-objects/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@
2626
"@types/react": "^19.2.3",
2727
"@types/react-dom": "^19.2.3",
2828
"@vitejs/plugin-react": "^6.0.1",
29-
"vite": "^8.0.3"
29+
"vite": "^8.0.8"
3030
}
3131
}

examples/01-basic/03-multi-column/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,17 @@
1616
"@blocknote/mantine": "latest",
1717
"@blocknote/react": "latest",
1818
"@blocknote/shadcn": "latest",
19+
"@blocknote/xl-multi-column": "latest",
1920
"@mantine/core": "^8.3.11",
2021
"@mantine/hooks": "^8.3.11",
2122
"@mantine/utils": "^6.0.22",
2223
"react": "^19.2.3",
23-
"react-dom": "^19.2.3",
24-
"@blocknote/xl-multi-column": "latest"
24+
"react-dom": "^19.2.3"
2525
},
2626
"devDependencies": {
2727
"@types/react": "^19.2.3",
2828
"@types/react-dom": "^19.2.3",
2929
"@vitejs/plugin-react": "^6.0.1",
30-
"vite": "^8.0.3"
30+
"vite": "^8.0.8"
3131
}
3232
}

examples/01-basic/04-default-blocks/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@
2626
"@types/react": "^19.2.3",
2727
"@types/react-dom": "^19.2.3",
2828
"@vitejs/plugin-react": "^6.0.1",
29-
"vite": "^8.0.3"
29+
"vite": "^8.0.8"
3030
}
3131
}

examples/01-basic/05-removing-default-blocks/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@
2626
"@types/react": "^19.2.3",
2727
"@types/react-dom": "^19.2.3",
2828
"@vitejs/plugin-react": "^6.0.1",
29-
"vite": "^8.0.3"
29+
"vite": "^8.0.8"
3030
}
3131
}

examples/01-basic/06-block-manipulation/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@
2626
"@types/react": "^19.2.3",
2727
"@types/react-dom": "^19.2.3",
2828
"@vitejs/plugin-react": "^6.0.1",
29-
"vite": "^8.0.3"
29+
"vite": "^8.0.8"
3030
}
3131
}

0 commit comments

Comments
 (0)