Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .changeset/olive-donkeys-repeat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
"@hyperbook/web-component-excalidraw": minor
"@hyperbook/markdown": minor
"create-hyperbook": minor
"@hyperbook/cloud": minor
"hyperbook-studio": minor
"@hyperbook/fs": minor
"hyperbook": minor
---

Update all dependencies to their latest versions

Notable upgrades: Shiki 4, Mermaid 11.16, three.js 0.185, p5 2.3, Excalidraw 0.18.1, React 19.2, Express 5, TypeScript 6, ESLint 10 and Vite 8. Rendered output is unchanged.

hyperbook-studio now requires VS Code 1.125.0 or newer.
28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,23 @@
"website:diff": "node scripts/diffFolders.mjs ./website/en ./website/de"
},
"devDependencies": {
"@changesets/changelog-github": "0.5.0",
"@changesets/cli": "2.27.12",
"@types/node": "20.12.12",
"chalk": "5.4.1",
"chokidar": "4.0.3",
"cross-env": "7.0.3",
"esbuild": "0.24.2",
"@changesets/changelog-github": "0.7.0",
"@changesets/cli": "2.31.1",
"@types/node": "26.2.0",
"chalk": "6.0.0",
"chokidar": "5.0.0",
"cross-env": "10.1.0",
"esbuild": "0.28.2",
"husky": "9.1.7",
"plop": "4.0.1",
"prettier": "3.4.2",
"prettier-plugin-sort-json": "4.1.1",
"pretty-quick": "4.0.0",
"rimraf": "6.0.1",
"plop": "4.0.5",
"prettier": "3.9.6",
"prettier-plugin-sort-json": "4.2.0",
"pretty-quick": "4.2.2",
"rimraf": "6.1.3",
"ts-node": "10.9.2",
"typescript": "5.7.3",
"typescript": "6.0.3",
"walkdir": "0.4.1",
"webpack": "5.97.1"
"webpack": "5.109.2"
},
"browserslist": {
"production": [
Expand Down
11 changes: 6 additions & 5 deletions packages/create/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,15 @@
},
"dependencies": {
"@hyperbook/types": "workspace:*",
"chalk": "^4.1.2",
"chalk": "^6.0.0",
"prompts": "^2.4.2"
},
"devDependencies": {
"@types/node": "26.2.0",
"@types/prompts": "^2.4.9",
"rimraf": "6.0.1",
"tsdown": "^0.20.1",
"typescript": "5.7.3",
"vitest": "4.0.18"
"rimraf": "6.1.3",
"tsdown": "^0.22.14",
"typescript": "6.0.3",
"vitest": "4.1.10"
}
}
13 changes: 7 additions & 6 deletions packages/fs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,22 +38,23 @@
"handlebars"
],
"dependencies": {
"chalk": "5.4.1",
"find-up": "^7.0.0",
"chalk": "6.0.0",
"find-up": "^8.0.0",
"gray-matter": "4.0.3",
"mdast-util-directive": "^3.1.0",
"mdast-util-from-markdown": "^2.0.2",
"mdast-util-from-markdown": "^2.0.3",
"micromark-extension-directive": "^4.0.0",
"mime-types": "^3.0.2",
"unist-util-visit": "^5.1.0",
"yaml": "^2.8.2"
"yaml": "^2.9.0"
},
"devDependencies": {
"@hyperbook/types": "workspace:*",
"@types/mdast": "^4.0.4",
"@types/mime-types": "^3.0.1",
"handlebars": "^4.7.8",
"@types/node": "26.2.0",
"handlebars": "^4.7.9",
"ms": "^2.1.3",
"vitest": "^4.0.18"
"vitest": "^4.1.10"
}
}
6 changes: 3 additions & 3 deletions packages/hyperbook/archive.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import path from "path";
import fs from "fs";
import archiver from "archiver";
import { ZipArchive } from "archiver";
import chalk from "chalk";

async function archiveFolder(
Expand All @@ -16,12 +16,12 @@ async function archiveFolder(
}
const outputPath = path.join(archivesPath, name + ".zip");
const output = fs.createWriteStream(outputPath);
const archive = archiver("zip", { zlib: { level: 9 } });
const archive = new ZipArchive({ zlib: { level: 9 } });
archive.on("finish", () => {
console.log(`${chalk.blue(`[${prefix}]`)} Archive ${name} zipped.`);
resolve();
});
archive.on("error", (err) => {
archive.on("error", (err: Error) => {
throw err;
});

Expand Down
40 changes: 20 additions & 20 deletions packages/hyperbook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,41 +32,41 @@
"build": "rimraf dist && ncc build ./index.ts -o ./dist/ --no-cache --no-source-map-register --external favicons --external sharp && node postbuild.mjs"
},
"dependencies": {
"favicons": "^7.2.0"
"favicons": "^7.3.1"
},
"devDependencies": {
"@hyperbook/fs": "workspace:*",
"@hyperbook/markdown": "workspace:*",
"@hyperbook/types": "workspace:*",
"@pnpm/exportable-manifest": "1000.0.6",
"@types/archiver": "6.0.3",
"@pnpm/exportable-manifest": "1000.4.2",
"@types/archiver": "8.0.0",
"@types/async-retry": "1.4.9",
"@types/cross-spawn": "6.0.6",
"@types/lunr": "^2.3.7",
"@types/node": "26.2.0",
"@types/prompts": "2.4.9",
"@types/tar": "6.1.13",
"@types/ws": "^8.5.14",
"@vercel/ncc": "0.38.3",
"archiver": "7.0.1",
"@types/ws": "^8.18.1",
"@vercel/ncc": "0.44.1",
"archiver": "8.0.0",
"async-retry": "1.3.3",
"chalk": "5.4.1",
"chokidar": "4.0.3",
"commander": "12.1.0",
"cpy": "11.1.0",
"chalk": "6.0.0",
"chokidar": "5.0.0",
"commander": "15.0.0",
"cpy": "13.2.2",
"create-hyperbook": "workspace:*",
"cross-spawn": "7.0.6",
"domutils": "^3.2.2",
"domutils": "^4.0.2",
"extract-zip": "^2.0.1",
"got": "12.6.0",
"htmlparser2": "^10.0.0",
"got": "15.1.0",
"htmlparser2": "^12.0.0",
"lunr": "^2.3.9",
"lunr-languages": "^1.14.0",
"mime": "^4.0.6",
"lunr-languages": "^1.21.0",
"mime": "^4.1.0",
"prompts": "2.4.2",
"rimraf": "6.0.1",
"tar": "7.4.3",
"rimraf": "6.1.3",
"tar": "7.5.22",
"update-check": "1.5.4",
"vitest": "^4.0.18",
"ws": "^8.18.0"
"vitest": "^4.1.10",
"ws": "^8.21.3"
}
}
20 changes: 18 additions & 2 deletions packages/hyperbook/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,28 @@
{
"compilerOptions": {
"target": "es2019",
// ncc's ts-loader requires CommonJS emit, which in turn pins module
// resolution to node10 (bundler/node16 are rejected with this module mode).
"module": "commonjs",
"moduleResolution": "node",
"moduleResolution": "node10",
"ignoreDeprecations": "6.0",
"strict": true,
"resolveJsonModule": true,
"esModuleInterop": true,
"skipLibCheck": false
// vitest 4 / vite 8 declarations use "exports" subpaths that node10
// resolution cannot follow; don't type-check dependency declarations.
// (Every other package inherits skipLibCheck: true from tsconfig.base.json.)
"skipLibCheck": true,
"types": ["node"],
// chalk 6 and got 15 ship an "exports" map with no "main"/"types" fallback,
// so node10 resolution cannot find them. Point at the containing directory
// (not the .d.ts): ts-loader resolves index.d.ts for types while webpack
// resolves index.js for the bundle. Mapping straight to the .d.ts makes
// webpack try to bundle the declaration file and breaks the built CLI.
"paths": {
"chalk": ["./node_modules/chalk/source"],
"got": ["./node_modules/got/dist/source"]
}
},
"exclude": ["templates", "dist"]
}
File renamed without changes.
89 changes: 45 additions & 44 deletions packages/markdown/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,88 +41,89 @@
"dependencies": {
"@rehype-pretty/transformers": "^0.13.2",
"decircular": "^1.0.0",
"handlebars": "^4.7.8",
"handlebars": "^4.7.9",
"hast-util-from-html": "^2.0.3",
"hast-util-to-text": "^4.0.2",
"is-obj": "^3.0.0",
"js-base64": "^3.7.8",
"js-yaml": "^4.1.1",
"js-base64": "^3.9.2",
"js-yaml": "^5.2.3",
"mdast-util-directive": "^3.1.0",
"mdast-util-from-markdown": "^2.0.2",
"mdast-util-from-markdown": "^2.0.3",
"mdast-util-to-hast": "^13.2.1",
"mdast-util-to-string": "^4.0.0",
"micromark-extension-directive": "^4.0.0",
"pako": "2.1.0",
"pako": "3.0.1",
"qrcode-svg": "^1.1.0",
"rehype-format": "^5.0.1",
"rehype-katex": "7.0.1",
"rehype-pretty-code": "^0.14.1",
"rehype-pretty-code": "^0.14.5",
"rehype-stringify": "^10.0.1",
"rehype-unwrap-images": "^1.0.0",
"remark-directive": "4.0.0",
"remark-directive-rehype": "0.4.2",
"remark-directive-rehype": "1.0.0",
"remark-gemoji": "8.0.0",
"remark-gfm": "4.0.1",
"remark-math": "6.0.0",
"remark-rehype": "^11.1.2",
"shiki": "^3.21.0",
"sort-keys": "^6.0.0",
"three": "0.170.0",
"shiki": "^4.4.3",
"sort-keys": "^6.0.1",
"three": "0.185.1",
"unified": "^11.0.5",
"unist-util-find-after": "^5.0.0",
"unist-util-visit": "^5.1.0",
"unist-util-visit-parents": "^6.0.2"
},
"devDependencies": {
"@codemirror/commands": "^6.0.0",
"@codemirror/lang-cpp": "^6.0.0",
"@codemirror/lang-css": "^6.0.0",
"@codemirror/lang-html": "^6.0.0",
"@codemirror/lang-javascript": "^6.0.0",
"@codemirror/lang-python": "^6.0.0",
"@codemirror/language": "^6.0.0",
"@codemirror/state": "^6.0.0",
"@codemirror/view": "^6.0.0",
"@excalidraw/excalidraw": "0.18.0",
"@fsegurai/codemirror-theme-github-dark": "^6.0.0",
"@fsegurai/codemirror-theme-github-light": "^6.0.0",
"@codemirror/commands": "^6.10.4",
"@codemirror/lang-cpp": "^6.0.3",
"@codemirror/lang-css": "^6.3.1",
"@codemirror/lang-html": "^6.4.12",
"@codemirror/lang-javascript": "^6.2.5",
"@codemirror/lang-python": "^6.2.1",
"@codemirror/language": "^6.12.4",
"@codemirror/state": "^6.7.1",
"@codemirror/view": "^6.43.8",
"@excalidraw/excalidraw": "0.18.1",
"@fsegurai/codemirror-theme-github-dark": "^6.2.5",
"@fsegurai/codemirror-theme-github-light": "^6.2.5",
"@hyperbook/fs": "workspace:*",
"@hyperbook/types": "workspace:*",
"@hyperbook/web-component-excalidraw": "workspace:*",
"@learningmap/web-component": "^0.3.7",
"@raspberrypifoundation/python-friendly-error-messages": "^0.1.6",
"@shikijs/types": "^3.21.0",
"@learningmap/web-component": "^0.3.8",
"@raspberrypifoundation/python-friendly-error-messages": "^0.8.0",
"@shikijs/types": "^4.4.3",
"@twemoji/svg": "15.0.0",
"@types/hast": "3.0.4",
"@types/hast": "3.0.5",
"@types/js-yaml": "^4.0.9",
"@types/mdast": "^4.0.4",
"@types/node": "26.2.0",
"@types/object-hash": "3.0.6",
"@types/pako": "2.0.4",
"@types/qrcode-svg": "^1.1.5",
"abcjs": "^6.6.0",
"chalk": "^5.4.1",
"chokidar": "4.0.3",
"@types/unist": "^3.0.3",
"abcjs": "^6.7.0",
"chalk": "^6.0.0",
"chokidar": "5.0.0",
"codemirror": "6.0.2",
"dexie": "^4.2.1",
"dexie-export-import": "^4.1.4",
"esbuild": "0.24.2",
"h5p-standalone": "^3.8.0",
"jsxgraph": "^1.12.2",
"dexie": "^4.4.4",
"dexie-export-import": "^4.4.0",
"esbuild": "0.28.2",
"h5p-standalone": "^3.8.2",
"jsxgraph": "^1.13.1",
"live-server": "^1.2.2",
"lunr": "^2.3.9",
"lunr-languages": "^1.14.0",
"mermaid": "11.12.2",
"lunr-languages": "^1.21.0",
"mermaid": "11.16.1",
"micromark-util-types": "^2.0.2",
"ncp": "^2.0.0",
"node-fetch": "^3.3.2",
"p5": "^2.2.0",
"scratchblocks": "^3.6.4",
"struktolab": "^0.4.2",
"terser": "^5.46.0",
"p5": "^2.3.2",
"scratchblocks": "^3.7.1",
"struktolab": "^0.5.0",
"terser": "^5.49.2",
"three-viewport-gizmo": "^2.2.0",
"unzipper": "^0.12.3",
"unzipper": "^0.12.5",
"vfile": "^6.0.3",
"vitest": "^4.0.18",
"wavesurfer.js": "^7.12.1"
"vitest": "^4.1.10",
"wavesurfer.js": "^7.12.11"
}
}
Loading