[go: up one dir, main page]

Skip to content

Commit

Permalink
fix(deps): replace dependency xmldom with @xmldom/xmldom ^0.7.5 (#1719)
Browse files Browse the repository at this point in the history
* fix(deps): replace dependency xmldom with @xmldom/xmldom ^0.7.5

* chore: replace dep in imports

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: dangreen <danon0404@gmail.com>
  • Loading branch information
renovate[bot] and dangreen authored Apr 22, 2024
1 parent 07ee4ed commit 9d2af45
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 24 deletions.
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
"@types/node": "^17.0.16",
"@types/node-fetch": "^2.5.12",
"@types/puppeteer": "^5.4.2",
"@types/xmldom": "^0.1.29",
"@xmldom/xmldom": "^0.7.5",
"browserslist": "^4.19.1",
"canvas": "^2.1.0",
"clean-publish": "^4.0.0",
Expand All @@ -126,8 +126,7 @@
"standard-version": "^9.3.2",
"ts-node": "^10.5.0",
"tsconfig-paths": "^3.8.0",
"typescript": "^4.5.5",
"xmldom": "^0.6.0"
"typescript": "^4.5.5"
},
"readme": ""
}
23 changes: 8 additions & 15 deletions pnpm-lock.yaml

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

2 changes: 1 addition & 1 deletion sandboxes/nodejs/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { promises as fs } from 'fs'
import { DOMParser } from 'xmldom'
import { DOMParser } from '@xmldom/xmldom'
import canvas from 'canvas'
import fetch from 'node-fetch'
import {
Expand Down
4 changes: 2 additions & 2 deletions sandboxes/nodejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"start": "node ./index.js"
},
"dependencies": {
"@xmldom/xmldom": "^0.7.5",
"canvas": "^2.1.0",
"canvg": "^4.0.0",
"node-fetch": "^2.6.0",
"xmldom": "^0.6.0"
"node-fetch": "^2.6.0"
}
}
2 changes: 1 addition & 1 deletion sandboxes/worker/worker.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { DOMParser } from 'https://cdn.skypack.dev/xmldom@^0.6.0'
import { DOMParser } from 'https://cdn.skypack.dev/@xmldom/xmldom@^0.7.5'
import {
Canvg,
presets
Expand Down
Binary file modified test/__image_snapshots__/node-issue231.svg-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion test/canvg.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import path from 'path'
import { promises as fs } from 'fs'
import { DOMParser } from 'xmldom'
import { DOMParser } from '@xmldom/xmldom'
import * as canvas from 'canvas'
import fetch from 'node-fetch'
import { Canvg, presets } from '../src'
Expand Down
2 changes: 1 addition & 1 deletion test/node/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
promises as fs,
createReadStream
} from 'fs'
import { DOMParser } from 'xmldom'
import { DOMParser } from '@xmldom/xmldom'
import * as canvas from 'canvas'
import fetch, { Response } from 'node-fetch'
import { Canvg, presets } from '../../src'
Expand Down

0 comments on commit 9d2af45

Please sign in to comment.