Skip to content

Commit

Permalink
feat: bump asciidoctor to 3.0.2
Browse files Browse the repository at this point in the history
BREAKING CHANGE: The @asciidoctor/core & asciidoctor dependency are now in version ^3.0.2.
Note: npm is likely to return a warring because asciidoctor-highlight.js continues to require
version 2.x of asciidoctor. We can ignore this error `--force`
  • Loading branch information
ThibaudAV committed Dec 15, 2023
1 parent 22599fe commit d3327f2
Show file tree
Hide file tree
Showing 3 changed files with 532 additions and 70 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"whatwg-fetch": "^3.6.17"
},
"devDependencies": {
"@asciidoctor/core": "2.2.6",
"@asciidoctor/core": "3.0.2",
"@babel/preset-env": "7.20.2",
"@babel/preset-typescript": "7.21.0",
"@commitlint/cli": "16.3.0",
Expand All @@ -86,7 +86,7 @@
"@storybook/theming": "6.4.22",
"@storybook/web-components": "6.4.22",
"@types/dompurify": "^3.0.2",
"asciidoctor": "2.2.6",
"asciidoctor": "3.0.2",
"asciidoctor-highlight.js": "0.4.0",
"babel-jest": "27.5.1",
"babel-loader": "8.3.0",
Expand Down Expand Up @@ -132,9 +132,9 @@
"zx": "4.3.0"
},
"peerDependencies": {
"@asciidoctor/core": "^2.2.4",
"@asciidoctor/core": "^3.0.2",
"@highcharts/map-collection": "^1.0.0 || ^2.0.0",
"asciidoctor": "^2.2.4",
"asciidoctor": "^3.0.2",
"asciidoctor-highlight.js": "^0.3.0 || ^0.4.0",
"highcharts": "^8.0.0 || ^9.0.0 || ^10.0.0",
"highlight.js": "^10.7.0 || ^11.1.0"
Expand Down
2 changes: 1 addition & 1 deletion src/lib/text-format.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export async function loadAsciiDoctor() {

// Load asciidoctor if is not already loaded
if (_gvAsciidoctor == null) {
_gvAsciidoctor = (await import('asciidoctor')).default();
_gvAsciidoctor = (await import('@asciidoctor/core')).default();
window._gvAsciidoctor = _gvAsciidoctor;
}

Expand Down
Loading

0 comments on commit d3327f2

Please sign in to comment.