1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-18 14:18:23 +02:00

Upgrade @metalsmith/layouts to version 3.0.0

This is a major version bump, and the changelog at
https://github.com/metalsmith/layouts/releases/tag/v3.0.0
indicates a breaking change that impacts us, namely that we need to
explicitly define the pattern and transformer that we wish to use.
This commit is contained in:
Tim van der Meij 2025-03-15 19:49:59 +01:00
parent ef7e0ddae4
commit cfe6cc6a7e
No known key found for this signature in database
GPG key ID: 8C3FD2925A5F2762
3 changed files with 8 additions and 27 deletions

View file

@ -2266,6 +2266,8 @@ gulp.task("metalsmith", async function () {
.use( .use(
layouts({ layouts({
directory: "docs/templates", directory: "docs/templates",
pattern: "**",
transform: "nunjucks",
}) })
) )
.use(relative()) .use(relative())

31
package-lock.json generated
View file

@ -12,7 +12,7 @@
"@babel/runtime": "^7.26.10", "@babel/runtime": "^7.26.10",
"@fluent/bundle": "^0.18.0", "@fluent/bundle": "^0.18.0",
"@fluent/dom": "^0.10.0", "@fluent/dom": "^0.10.0",
"@metalsmith/layouts": "^2.7.0", "@metalsmith/layouts": "^3.0.0",
"@metalsmith/markdown": "^1.10.0", "@metalsmith/markdown": "^1.10.0",
"@napi-rs/canvas": "^0.1.68", "@napi-rs/canvas": "^0.1.68",
"@types/node": "^22.13.10", "@types/node": "^22.13.10",
@ -2195,18 +2195,17 @@
} }
}, },
"node_modules/@metalsmith/layouts": { "node_modules/@metalsmith/layouts": {
"version": "2.7.0", "version": "3.0.0",
"resolved": "https://registry.npmjs.org/@metalsmith/layouts/-/layouts-2.7.0.tgz", "resolved": "https://registry.npmjs.org/@metalsmith/layouts/-/layouts-3.0.0.tgz",
"integrity": "sha512-VG5ldPSsTxUvHqFQo0u5mjWtS2IUUOqYKHvWnEHKol1UhaXhhYBYSnG0D8kjk+XzGw+mWxNfv/JoAhg94filXA==", "integrity": "sha512-5rOquSdfdQ9Nx++4gEIOZ8BDV0NuudthgV+itIJK/wgGRrFsmq2+3xQrbsX94oY73+KPJA5h638IU7Qp1nmTpQ==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"inputformat-to-jstransformer": "^1.4.0",
"is-utf8": "^0.2.1", "is-utf8": "^0.2.1",
"jstransformer": "^1.0.0" "jstransformer": "^1.0.0"
}, },
"engines": { "engines": {
"node": ">=12.0.0" "node": ">=14.18.0"
}, },
"peerDependencies": { "peerDependencies": {
"metalsmith": "^2.4.1" "metalsmith": "^2.4.1"
@ -7130,19 +7129,6 @@
"integrity": "sha512-iKpRpXP+CrP2jyrxvg1kMUpXDyRUFDWurxbnVT1vQPx+Wz9uCYsMIqYuSBLV+PAaZG/d7kRLKRFc9oDMsH+mFQ==", "integrity": "sha512-iKpRpXP+CrP2jyrxvg1kMUpXDyRUFDWurxbnVT1vQPx+Wz9uCYsMIqYuSBLV+PAaZG/d7kRLKRFc9oDMsH+mFQ==",
"dev": true "dev": true
}, },
"node_modules/inputformat-to-jstransformer": {
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/inputformat-to-jstransformer/-/inputformat-to-jstransformer-1.4.0.tgz",
"integrity": "sha512-Ub+Wjb0mjaND4IS/GDvQ+TEyd1i9U4OdrF58mBY7QTYu8CK5K34DPV7mrvo/WQBJLj7UJWQc7QAmFb7CbQ5lLw==",
"dev": true,
"license": "MIT",
"dependencies": {
"require-one": "^1.0.3"
},
"engines": {
"node": ">=4"
}
},
"node_modules/internal-slot": { "node_modules/internal-slot": {
"version": "1.0.7", "version": "1.0.7",
"resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.7.tgz", "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.7.tgz",
@ -10313,13 +10299,6 @@
"node": ">=0.10.0" "node": ">=0.10.0"
} }
}, },
"node_modules/require-one": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/require-one/-/require-one-1.0.3.tgz",
"integrity": "sha512-5nXixwgbAZfQ65g7fXv5fDXYRiKByOT1NT3EffS+0W/1MoF+Lkbsly3MXIlPIAgEtspX5fWAbXnp6d4BNMx+xQ==",
"dev": true,
"license": "MIT"
},
"node_modules/requizzle": { "node_modules/requizzle": {
"version": "0.2.3", "version": "0.2.3",
"resolved": "https://registry.npmjs.org/requizzle/-/requizzle-0.2.3.tgz", "resolved": "https://registry.npmjs.org/requizzle/-/requizzle-0.2.3.tgz",

View file

@ -7,7 +7,7 @@
"@babel/runtime": "^7.26.10", "@babel/runtime": "^7.26.10",
"@fluent/bundle": "^0.18.0", "@fluent/bundle": "^0.18.0",
"@fluent/dom": "^0.10.0", "@fluent/dom": "^0.10.0",
"@metalsmith/layouts": "^2.7.0", "@metalsmith/layouts": "^3.0.0",
"@metalsmith/markdown": "^1.10.0", "@metalsmith/markdown": "^1.10.0",
"@napi-rs/canvas": "^0.1.68", "@napi-rs/canvas": "^0.1.68",
"@types/node": "^22.13.10", "@types/node": "^22.13.10",