Skip to content

Commit 27cbe63

Browse files
[Custom blocks] Update all template dependencies (#137)
## Summary The custom block templates lag behind the current SDK and tooling releases. Update all direct dependencies in custom, habit-tracker, org-chart, and whiteboard to their latest stable npm versions, including Workers 0.9.3, custom-blocks 0.2.22, and dev-shell 0.1.98. Raise the Node minimum to 22.12 to match Vite and add Vite client types to org-chart and whiteboard so their CSS imports pass TypeScript 7 checks. Replace the open-ended Workers range with `^0.9.3`. ## Test plan - [x] All four templates: typechecks, existing tests, Worker builds, and Vite production builds. - [x] Repository recipe tests, Markdown lint, formatting, and commit hooks. - [x] Updated template dependency trees: zero npm audit findings. - [x] Full `npm run verify:all`, including all Apps and Worker typechecks, offline tests, Markdown lint, and formatting. - [ ] Live Notion rendering and deployment were not tested. [written by Codex]
1 parent 8f74ae0 commit 27cbe63

6 files changed

Lines changed: 55 additions & 53 deletions

File tree

‎workers/templates/custom-blocks/custom/package.json‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,22 @@
99
"test": "node --test test/*.test.mjs"
1010
},
1111
"engines": {
12-
"node": ">=22.0.0",
12+
"node": ">=22.12.0",
1313
"npm": ">=10.9.2"
1414
},
1515
"devDependencies": {
16-
"@notionhq/custom-blocks-dev-shell": "^0.1.16",
17-
"@types/node": "^22.9.0",
18-
"@types/react": "^19.2.17",
19-
"@types/react-dom": "^19.2.3",
20-
"@vitejs/plugin-react": "^6.0.3",
21-
"typescript": "^6.0.3",
22-
"vite": "^8.1.5"
16+
"@notionhq/custom-blocks-dev-shell": "^0.1.98",
17+
"@types/node": "^26.6.5",
18+
"@types/react": "^19.3.0",
19+
"@types/react-dom": "^19.3.0",
20+
"@vitejs/plugin-react": "^6.1.2",
21+
"typescript": "^7.0.2",
22+
"vite": "^8.3.4"
2323
},
2424
"dependencies": {
25-
"@notionhq/custom-blocks": "^0.2.2",
26-
"@notionhq/workers": ">=0.0.0",
27-
"react": "^19.2.8",
28-
"react-dom": "^19.2.8"
25+
"@notionhq/custom-blocks": "^0.2.22",
26+
"@notionhq/workers": "^0.9.3",
27+
"react": "^19.3.1",
28+
"react-dom": "^19.3.1"
2929
}
3030
}

‎workers/templates/custom-blocks/habit-tracker/package.json‎

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,23 @@
99
"test": "tsx --test test/*.test.ts"
1010
},
1111
"engines": {
12-
"node": ">=22.0.0",
12+
"node": ">=22.12.0",
1313
"npm": ">=10.9.2"
1414
},
1515
"devDependencies": {
16-
"@notionhq/custom-blocks-dev-shell": "^0.1.16",
17-
"@types/node": "^22.9.0",
18-
"@types/react": "^19.2.17",
19-
"@types/react-dom": "^19.2.3",
20-
"@vitejs/plugin-react": "^6.0.3",
21-
"tsx": "^4.20.6",
22-
"typescript": "^5.8.0",
23-
"vite": "^8.1.5"
16+
"@notionhq/custom-blocks-dev-shell": "^0.1.98",
17+
"@types/node": "^26.6.5",
18+
"@types/react": "^19.3.0",
19+
"@types/react-dom": "^19.3.0",
20+
"@vitejs/plugin-react": "^6.1.2",
21+
"tsx": "^4.23.15",
22+
"typescript": "^7.0.2",
23+
"vite": "^8.3.4"
2424
},
2525
"dependencies": {
26-
"@notionhq/custom-blocks": "^0.2.2",
27-
"@notionhq/workers": ">=0.0.0",
28-
"react": "^19.2.8",
29-
"react-dom": "^19.2.8"
26+
"@notionhq/custom-blocks": "^0.2.22",
27+
"@notionhq/workers": "^0.9.3",
28+
"react": "^19.3.1",
29+
"react-dom": "^19.3.1"
3030
}
3131
}

‎workers/templates/custom-blocks/org-chart/blocks/org-chart/tsconfig.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"forceConsistentCasingInFileNames": true,
1515
"resolveJsonModule": true,
1616
"isolatedModules": true,
17-
"noEmit": true
17+
"noEmit": true,
18+
"types": ["vite/client"]
1819
},
1920
"include": ["src", "vite.config.ts"]
2021
}

‎workers/templates/custom-blocks/org-chart/package.json‎

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,24 @@
99
"test": "tsx --test test/*.test.ts"
1010
},
1111
"engines": {
12-
"node": ">=22.0.0",
12+
"node": ">=22.12.0",
1313
"npm": ">=10.9.2"
1414
},
1515
"devDependencies": {
16-
"@notionhq/custom-blocks-dev-shell": "^0.1.16",
17-
"@types/node": "^22.9.0",
18-
"@types/react": "^19.2.17",
19-
"@types/react-dom": "^19.2.3",
20-
"@vitejs/plugin-react": "^6.0.3",
21-
"tsx": "^4.20.6",
22-
"typescript": "^5.8.0",
23-
"vite": "^8.1.5"
16+
"@notionhq/custom-blocks-dev-shell": "^0.1.98",
17+
"@types/node": "^26.6.5",
18+
"@types/react": "^19.3.0",
19+
"@types/react-dom": "^19.3.0",
20+
"@vitejs/plugin-react": "^6.1.2",
21+
"tsx": "^4.23.15",
22+
"typescript": "^7.0.2",
23+
"vite": "^8.3.4"
2424
},
2525
"dependencies": {
26-
"@notionhq/custom-blocks": "^0.2.2",
27-
"@notionhq/workers": ">=0.0.0",
28-
"react": "^19.2.8",
29-
"react-dom": "^19.2.8"
26+
"@notionhq/custom-blocks": "^0.2.22",
27+
"@notionhq/workers": "^0.9.3",
28+
"react": "^19.3.1",
29+
"react-dom": "^19.3.1"
3030
},
3131
"allowScripts": {
3232
"esbuild@0.28.1": true,

‎workers/templates/custom-blocks/whiteboard/blocks/whiteboard/tsconfig.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"forceConsistentCasingInFileNames": true,
1313
"resolveJsonModule": true,
1414
"isolatedModules": true,
15-
"useDefineForClassFields": true
15+
"useDefineForClassFields": true,
16+
"types": ["vite/client"]
1617
},
1718
"include": ["src", "vite.config.ts"]
1819
}

‎workers/templates/custom-blocks/whiteboard/package.json‎

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,23 @@
99
"test": "tsx --test test/*.test.ts"
1010
},
1111
"engines": {
12-
"node": ">=22.0.0",
12+
"node": ">=22.12.0",
1313
"npm": ">=10.9.2"
1414
},
1515
"devDependencies": {
16-
"@notionhq/custom-blocks-dev-shell": "^0.1.16",
17-
"@types/node": "^22.9.0",
18-
"@types/react": "^19.2.17",
19-
"@types/react-dom": "^19.2.3",
20-
"@vitejs/plugin-react": "^6.0.3",
21-
"tsx": "^4.20.6",
22-
"typescript": "^5.8.0",
23-
"vite": "^8.1.5"
16+
"@notionhq/custom-blocks-dev-shell": "^0.1.98",
17+
"@types/node": "^26.6.5",
18+
"@types/react": "^19.3.0",
19+
"@types/react-dom": "^19.3.0",
20+
"@vitejs/plugin-react": "^6.1.2",
21+
"tsx": "^4.23.15",
22+
"typescript": "^7.0.2",
23+
"vite": "^8.3.4"
2424
},
2525
"dependencies": {
26-
"@notionhq/custom-blocks": "^0.2.2",
27-
"@notionhq/workers": ">=0.0.0",
28-
"react": "^19.2.8",
29-
"react-dom": "^19.2.8"
26+
"@notionhq/custom-blocks": "^0.2.22",
27+
"@notionhq/workers": "^0.9.3",
28+
"react": "^19.3.1",
29+
"react-dom": "^19.3.1"
3030
}
3131
}

0 commit comments

Comments
 (0)