@scalar/openapi-upgrader 0.2.5 → 0.2.7

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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @scalar/openapi-upgrader
2
2
 
3
+ ## 0.2.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [#9043](https://github.com/scalar/scalar/pull/9043): chore: move test documents to cdn
8
+
9
+ ## 0.2.6
10
+
3
11
  ## 0.2.5
4
12
 
5
13
  ### Patch Changes
@@ -1,11 +1,12 @@
1
+ import { PETSTORE_URL_2_0, STRIPE_URL_3_0 } from '@scalar/helpers/url/oas-document-fixtures';
1
2
  import { bench, describe, expect } from 'vitest';
2
3
  import { upgradeFromTwoToThree } from './2.0-to-3.0/upgrade-from-two-to-three.js';
3
4
  // import { upgrade as upgradeOld } from './slow/upgrade'
4
5
  // import { upgradeFromTwoToThree as upgradeFromTwoToThreeOld } from './slow/upgradeFromTwoToThree'
5
6
  import { upgrade } from './upgrade.js';
6
7
  // Setup the test data
7
- const STRIPE = await fetch('https://raw.githubusercontent.com/stripe/openapi/refs/heads/master/openapi/spec3.json').then((r) => r.json());
8
- const PETSTORE = await fetch('https://petstore.swagger.io/v2/swagger.json').then((r) => r.json());
8
+ const STRIPE = await fetch(STRIPE_URL_3_0).then((r) => r.json());
9
+ const PETSTORE = await fetch(PETSTORE_URL_2_0).then((r) => r.json());
9
10
  describe('upgrade', () => {
10
11
  describe('Petstore: Swagger 2.0 to OpenAPI 3.0', () => {
11
12
  bench('new', () => {
package/package.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "openapi 3.0",
21
21
  "openapi 3.1"
22
22
  ],
23
- "version": "0.2.5",
23
+ "version": "0.2.7",
24
24
  "engines": {
25
25
  "node": ">=22"
26
26
  },
@@ -71,11 +71,12 @@
71
71
  },
72
72
  "sideEffects": false,
73
73
  "dependencies": {
74
- "@scalar/openapi-types": "0.7.0"
74
+ "@scalar/openapi-types": "0.8.0"
75
75
  },
76
76
  "devDependencies": {
77
77
  "vite": "8.0.0",
78
- "@scalar/types": "0.9.0"
78
+ "@scalar/types": "0.9.4",
79
+ "@scalar/helpers": "0.5.4"
79
80
  },
80
81
  "scripts": {
81
82
  "build": "tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json",