@asciidoctor/core 2.2.6 → 3.0.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,41 +1,45 @@
1
1
  {
2
2
  "name": "@asciidoctor/core",
3
- "version": "2.2.6",
3
+ "version": "3.0.0-alpha.3",
4
4
  "description": "Asciidoctor - the core library",
5
5
  "main": "dist/node/asciidoctor.js",
6
6
  "browser": "dist/browser/asciidoctor.js",
7
+ "module": "dist/browser/asciidoctor.js",
8
+ "type": "module",
7
9
  "types": "types",
8
10
  "engines": {
9
- "node": ">=8.11",
10
- "npm": ">=5.0.0",
11
- "yarn": ">=1.1.0"
11
+ "node": ">=16",
12
+ "npm": ">=8"
12
13
  },
13
14
  "files": [
14
15
  "dist",
15
16
  "types/index.d.ts",
16
17
  "LICENSE",
17
- "README.adoc"
18
+ "README.md"
18
19
  ],
19
20
  "scripts": {
20
- "test:graalvm": "node tasks/graalvm.js",
21
- "test:node": "mocha spec/*/*.spec.js",
22
- "test:browser": "node spec/browser/run.js",
23
- "test:types": "rm -f types/tests.js && eslint types --ext .ts && tsc --build types/tsconfig.json && node types/tests.js",
24
- "test": "node tasks/test/unsupported-features.js && npm run test:node && npm run test:browser && npm run test:types",
25
- "build": "node tasks/build.js && npm run test && npm run lint",
26
- "build:quick": "node tasks/build.js && npm run test:node && npm run code:lint",
21
+ "postpublish": "downdoc --postpublish",
22
+ "prepublishOnly": "downdoc --prepublish",
23
+ "test:graalvm": "node tasks/graalvm.cjs",
24
+ "test:node": "mocha spec/*/*.spec.cjs && npm run test:node:esm",
25
+ "test:node:esm": "mocha --experimental-json-modules spec/node/asciidoctor.spec.js",
26
+ "test:browser": "node spec/browser/run.cjs",
27
+ "test:types": "rm -f types/tests.js && eslint types --ext .ts && tsc --build types/tsconfig.json && node --input-type=commonjs types/tests.js",
28
+ "test": "node tasks/test/unsupported-features.cjs && npm run test:node && npm run test:browser && npm run test:types",
29
+ "build": "node tasks/build.cjs && npm run test && npm run lint",
30
+ "build:quick": "node tasks/build.cjs && npm run test:node && npm run code:lint",
27
31
  "clean": "npm run clean:all",
28
- "clean:all": "node tasks/clean.js",
29
- "clean:core": "node tasks/clean.js core",
30
- "clean:patch": "node tasks/clean.js patch",
31
- "clean:js": "node tasks/clean.js js",
32
- "dist": "cross-env MINIFY=1 node tasks/dist.js",
33
- "lint": "npm run code:lint && npm run docs:lint",
34
- "code:lint": "eslint 'src/**/*.js' 'spec/**/*.js' 'spec/**/*.js' 'tasks/**/*.js' 'benchmark/**/*.js'",
35
- "package": "cross-env MINIFY=1 COPY_DIST=1 node tasks/build.js && cross-env MINIFY=1 npm run test",
36
- "examples": "node tasks/examples.js",
37
- "server": "node tasks/server.js",
38
- "benchmark": "node tasks/benchmark.js",
32
+ "clean:all": "node tasks/clean.cjs",
33
+ "clean:core": "node tasks/clean.cjs core",
34
+ "clean:patch": "node tasks/clean.cjs patch",
35
+ "clean:js": "node tasks/clean.cjs js",
36
+ "dist": "cross-env MINIFY=1 node tasks/dist.cjs",
37
+ "lint": "npm run code:lint",
38
+ "code:lint": "standard 'src/**/*.js' 'spec/**/*.cjs' 'spec/**/*.js' 'tasks/**/*.cjs' 'benchmark/**/*.cjs'",
39
+ "package": "cross-env MINIFY=1 COPY_DIST=1 node tasks/build.cjs && cross-env MINIFY=1 npm run test",
40
+ "examples": "node tasks/examples.cjs",
41
+ "server": "node tasks/server.cjs",
42
+ "benchmark": "node tasks/benchmark.cjs",
39
43
  "docs:lint": "documentation lint src/**",
40
44
  "docs:build": "documentation build src/** -f html -o build/docs -g",
41
45
  "docs:serve": "documentation serve src/** -g -w",
@@ -67,39 +71,52 @@
67
71
  },
68
72
  "homepage": "https://github.com/asciidoctor/asciidoctor.js",
69
73
  "dependencies": {
70
- "asciidoctor-opal-runtime": "0.3.3",
71
- "unxhr": "1.0.1"
74
+ "@asciidoctor/opal-runtime": "2.2.0",
75
+ "unxhr": "1.2.0"
72
76
  },
73
77
  "devDependencies": {
74
- "@types/node": "17.0.10",
78
+ "@rollup/plugin-commonjs": "24.0.0",
79
+ "@rollup/plugin-json": "6.0.0",
80
+ "@rollup/plugin-replace": "5.0.2",
81
+ "@types/node": "18.11.18",
75
82
  "@types/nunjucks": "3.2.1",
76
- "@typescript-eslint/eslint-plugin": "5.9.1",
77
- "@typescript-eslint/parser": "5.9.1",
83
+ "@typescript-eslint/eslint-plugin": "5.48.1",
84
+ "@typescript-eslint/parser": "5.48.1",
78
85
  "bestikk-download": "1.0.0",
79
86
  "bestikk-fs": "1.0.0",
80
87
  "bestikk-log": "0.1.0",
81
- "bestikk-uglify": "3.0.0",
82
- "chai": "4.3.4",
88
+ "bestikk-uglify": "3.0.1",
89
+ "chai": "4.3.7",
83
90
  "cross-env": "7.0.3",
84
91
  "dirty-chai": "2.0.1",
85
- "documentation": "13.2.5",
92
+ "documentation": "^14.0.0",
86
93
  "dot": "1.1.3",
87
- "ejs": "3.1.6",
88
- "eslint": "8.7.0",
89
- "eslint-config-standard": "^16.0.3",
90
- "eslint-plugin-import": "^2.25.4",
94
+ "downdoc": "^1.0.0-beta.8",
95
+ "ejs": "3.1.8",
96
+ "eslint": "8.31.0",
91
97
  "handlebars": "4.7.7",
92
- "http-server": "14.1.0",
93
- "mocha": "9.1.4",
98
+ "http-server": "14.1.1",
99
+ "mocha": "10.2.0",
100
+ "mock-http-server": "1.4.5",
94
101
  "module-alias": "2.2.2",
95
102
  "nunjucks": "3.2.3",
96
- "opal-compiler": "1.0.13",
103
+ "opal-compiler": "2.3.0",
104
+ "portfinder": "1.0.32",
97
105
  "pug": "3.0.2",
98
- "puppeteer": "13.1.1",
99
- "sinon": "12.0.1",
100
- "typescript": "4.5.4"
106
+ "puppeteer": "19.5.0",
107
+ "rollup": "3.9.1",
108
+ "sinon": "15.0.1",
109
+ "standard": "17.0.0",
110
+ "tsd": "0.25.0",
111
+ "typescript": "4.9.4"
112
+ },
113
+ "standard": {
114
+ "ignore": [
115
+ "src/template-*.js",
116
+ "spec/node/asciidoctor.spec.cjs"
117
+ ]
101
118
  },
102
119
  "_moduleAliases": {
103
- "@asciidoctor/core": "build/asciidoctor-node.js"
120
+ "@asciidoctor/core": "build/asciidoctor-node.cjs"
104
121
  }
105
122
  }