Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: jsdom/jsdom
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: vivliostyle/jsdom
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: vivliostyle-cli
Choose a head ref
Can’t automatically merge. Don’t worry, you can still create the pull request.
  • 3 commits
  • 4 files changed
  • 1 contributor

Commits on Jan 1, 2025

  1. Copy the full SHA
    ffa86bb View commit details
  2. Copy the full SHA
    dbfa3bd View commit details
  3. Copy the full SHA
    d6f0b55 View commit details
Showing with 15 additions and 12 deletions.
  1. +1 −1 lib/jsdom/living/nodes/HTMLImageElement-impl.js
  2. +1 −1 lib/jsdom/utils.js
  3. +6 −6 package-lock.json
  4. +7 −4 package.json
2 changes: 1 addition & 1 deletion lib/jsdom/living/nodes/HTMLImageElement-impl.js
Original file line number Diff line number Diff line change
@@ -122,7 +122,7 @@ class HTMLImageElementImpl extends HTMLElementImpl {
}
});
} else {
this._image.src = "";
this._image.src = Buffer.from([]);
}
}
}
2 changes: 1 addition & 1 deletion lib/jsdom/utils.js
Original file line number Diff line number Diff line change
@@ -99,7 +99,7 @@ exports.treeOrderSorter = function (a, b) {
};

try {
exports.Canvas = require("canvas");
exports.Canvas = require("@napi-rs/canvas");
} catch {
exports.Canvas = null;
}
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"name": "jsdom",
"version": "25.0.1",
"name": "@vivliostyle/jsdom",
"version": "25.0.1-vivliostyle-cli.1",
"publishConfig": {
"access": "public"
},
"description": "A JavaScript implementation of many web standards",
"keywords": [
"dom",
@@ -46,10 +49,10 @@
"xml-name-validator": "^5.0.0"
},
"peerDependencies": {
"canvas": "^2.11.2"
"@napi-rs/canvas": "^0.1.41"
},
"peerDependenciesMeta": {
"canvas": {
"@napi-rs/canvas": {
"optional": true
}
},