@apidevtools/json-schema-ref-parser 9.1.0 → 10.0.0

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@apidevtools/json-schema-ref-parser",
3
- "version": "9.1.0",
3
+ "version": "10.0.0",
4
4
  "description": "Parse, Resolve, and Dereference JSON Schema $ref pointers",
5
5
  "keywords": [
6
6
  "json",
@@ -21,6 +21,10 @@
21
21
  "name": "Boris Cherny",
22
22
  "email": "boris@performancejs.com"
23
23
  },
24
+ {
25
+ "name": "Phil Sturgeon",
26
+ "email": "phil@apisyouwonthate.com"
27
+ },
24
28
  {
25
29
  "name": "Jakub Rożek",
26
30
  "email": "jakub@stoplight.io"
@@ -32,43 +36,60 @@
32
36
  "url": "https://github.com/APIDevTools/json-schema-ref-parser.git"
33
37
  },
34
38
  "license": "MIT",
39
+ "funding": "https://github.com/sponsors/philsturgeon",
35
40
  "main": "lib/index.js",
36
41
  "typings": "lib/index.d.ts",
42
+ "exports": {
43
+ "types": "./lib/index.d.ts",
44
+ "require": "./cjs/index.js",
45
+ "default": "./lib/index.js"
46
+ },
37
47
  "browser": {
38
48
  "fs": false
39
49
  },
50
+ "engines": {
51
+ "node": ">= 17"
52
+ },
40
53
  "files": [
41
- "lib"
54
+ "lib",
55
+ "cjs"
42
56
  ],
57
+ "type": "module",
43
58
  "scripts": {
44
- "build": "cp LICENSE *.md dist",
45
- "clean": "shx rm -rf .nyc_output coverage",
59
+ "build": "swc ./lib/*.js -d ./cjs && swc ./lib/**/*.js -d ./cjs && copyfiles ./lib/**/*.cjs -u 1 ./cjs && node ./scripts/writeCJSPackageJSON.cjs",
60
+ "clean": "shx rm -rf coverage cjs",
46
61
  "lint": "eslint lib test/fixtures test/specs",
47
62
  "test": "npm run test:node && npm run test:typescript && npm run test:browser && npm run lint",
48
63
  "test:node": "mocha",
49
- "test:browser": "karma start --single-run",
64
+ "test:browser": "cross-env NODE_OPTIONS=--openssl-legacy-provider karma start karma.conf.cjs --single-run",
50
65
  "test:typescript": "tsc --noEmit --strict --lib esnext,dom test/specs/typescript-definition.spec.ts",
51
66
  "coverage": "npm run coverage:node && npm run coverage:browser",
52
- "coverage:node": "nyc node_modules/mocha/bin/mocha",
67
+ "coverage:node": "c8 node_modules/mocha/bin/mocha",
53
68
  "coverage:browser": "npm run test:browser -- --coverage",
54
69
  "upgrade": "npm-check -u && npm audit fix"
55
70
  },
56
71
  "devDependencies": {
57
- "@amanda-mitchell/semantic-release-npm-multiple": "^2.5.0",
58
72
  "@babel/polyfill": "^7.12.1",
73
+ "@chiragrupani/karma-chromium-edge-launcher": "^2.2.2",
59
74
  "@jsdevtools/eslint-config": "^1.0.7",
60
75
  "@jsdevtools/host-environment": "^2.1.2",
61
76
  "@jsdevtools/karma-config": "^3.1.7",
77
+ "@swc/cli": "^0.1.59",
78
+ "@swc/core": "^1.3.25",
62
79
  "@types/node": "^14.14.21",
63
- "chai-subset": "^1.6.0",
80
+ "c8": "^7.12.0",
64
81
  "chai": "^4.2.0",
82
+ "chai-subset": "^1.6.0",
83
+ "chokidar": "^3.5.3",
84
+ "copyfiles": "^2.4.1",
85
+ "cross-env": "^7.0.3",
65
86
  "eslint": "^7.18.0",
66
- "karma-cli": "^2.0.0",
87
+ "isomorphic-fetch": "^3.0.0",
67
88
  "karma": "^5.0.2",
89
+ "karma-cli": "^2.0.0",
68
90
  "mocha": "^8.2.1",
91
+ "node-abort-controller": "^3.0.1",
69
92
  "npm-check": "^5.9.0",
70
- "nyc": "^15.0.1",
71
- "semantic-release-plugin-update-version-in-files": "^1.1.0",
72
93
  "shx": "^0.3.2",
73
94
  "typescript": "^4.0.5"
74
95
  },
@@ -80,34 +101,12 @@
80
101
  },
81
102
  "release": {
82
103
  "branches": [
83
- "main",
84
- "v9"
104
+ "main"
85
105
  ],
86
106
  "plugins": [
87
107
  "@semantic-release/commit-analyzer",
88
108
  "@semantic-release/release-notes-generator",
89
- [
90
- "semantic-release-plugin-update-version-in-files",
91
- {
92
- "files": [
93
- "dist/package.json"
94
- ],
95
- "placeholder": "X.X.X"
96
- }
97
- ],
98
- [
99
- "@amanda-mitchell/semantic-release-npm-multiple",
100
- {
101
- "registries": {
102
- "scoped": {
103
- "pkgRoot": "."
104
- },
105
- "unscoped": {
106
- "pkgRoot": "dist"
107
- }
108
- }
109
- }
110
- ],
109
+ "@semantic-release/npm",
111
110
  "@semantic-release/github"
112
111
  ]
113
112
  }