@scalar/asyncapi-upgrader 0.1.1 → 0.1.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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @scalar/asyncapi-upgrader
2
2
 
3
+ ## 0.1.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#9710](https://github.com/scalar/scalar/pull/9710): Republish so the updated README (with the Scalar platform overview) reaches npm. Also renames the README generator metadata in package.json from `readme` to `scalarReadme`: npm treats a `readme` field as the readme text itself, so affected packages were published with a literal `[object Object]` readme on the registry instead of README.md.
8
+
9
+ ## 0.1.2
10
+
3
11
  ## 0.1.1
4
12
 
5
13
  ## 0.1.0
package/README.md CHANGED
@@ -14,6 +14,20 @@
14
14
 
15
15
  Upgrade AsyncAPI documents to the latest and greatest version
16
16
 
17
+ ---
18
+
19
+ Scalar is an open-source API platform for teams who want beautiful developer interfaces without vendor lock-in.
20
+
21
+ - **[API References](https://scalar.com/products/api-references/getting-started)** — Interactive API documentation from OpenAPI and AsyncAPI specs.
22
+ - **[Docs](https://scalar.com/products/docs/getting-started)** — Write in Markdown/MDX, generate API references, sync with two-way Git.
23
+ - **[SDKs](https://scalar.com/products/sdks/getting-started)** — Type-safe client libraries in TypeScript, Python, Go, PHP, Java, and Ruby.
24
+ - **[MCP Servers](https://scalar.com/products/agent/getting-started)** — Generate secure MCP servers from your API spec.
25
+ - **[API Client](https://scalar.com/products/api-client/getting-started)** — Open-source, offline-first Postman alternative built on OpenAPI.
26
+
27
+ 20M+ monthly npm installs · 15,500+ GitHub stars · MIT licensed · [scalar.com](https://scalar.com)
28
+
29
+ ---
30
+
17
31
  ## Documentation
18
32
 
19
33
  [Read the documentation here](https://scalar.com/tools/asyncapi-upgrader/getting-started)
package/dist/upgrade.d.ts CHANGED
@@ -2,9 +2,10 @@ import type { UnknownObject } from '@scalar/types/utils';
2
2
  /**
3
3
  * Upgrade an AsyncAPI document to the latest version.
4
4
  *
5
- * Each step only bumps the `asyncapi` version string for now — no structural
6
- * transformations are applied yet. The version-specific upgraders exist so the
7
- * real migration logic can be filled in later, mirroring `@scalar/openapi-upgrader`.
5
+ * Each step migrates the document through one major version, applying the structural
6
+ * transformations that version requires (for example 2.x → 3.0 lifts channel
7
+ * `publish`/`subscribe` operations into the top-level `operations` map and splits a
8
+ * server `url` into `host`/`pathname`), mirroring `@scalar/openapi-upgrader`.
8
9
  */
9
10
  export declare function upgrade(value: UnknownObject): UnknownObject;
10
11
  //# sourceMappingURL=upgrade.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"upgrade.d.ts","sourceRoot":"","sources":["../src/upgrade.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAMxD;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,aAAa,GAAG,aAAa,CAS3D"}
1
+ {"version":3,"file":"upgrade.d.ts","sourceRoot":"","sources":["../src/upgrade.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAMxD;;;;;;;GAOG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,aAAa,GAAG,aAAa,CAS3D"}
package/dist/upgrade.js CHANGED
@@ -4,9 +4,10 @@ import { upgradeFromThreeToThreeOne } from './3.0-to-3.1/index.js';
4
4
  /**
5
5
  * Upgrade an AsyncAPI document to the latest version.
6
6
  *
7
- * Each step only bumps the `asyncapi` version string for now — no structural
8
- * transformations are applied yet. The version-specific upgraders exist so the
9
- * real migration logic can be filled in later, mirroring `@scalar/openapi-upgrader`.
7
+ * Each step migrates the document through one major version, applying the structural
8
+ * transformations that version requires (for example 2.x → 3.0 lifts channel
9
+ * `publish`/`subscribe` operations into the top-level `operations` map and splits a
10
+ * server `url` into `host`/`pathname`), mirroring `@scalar/openapi-upgrader`.
10
11
  */
11
12
  export function upgrade(value) {
12
13
  // AsyncAPI 1.x -> 2.6
package/package.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "asyncapi 3.0",
21
21
  "asyncapi 3.1"
22
22
  ],
23
- "version": "0.1.1",
23
+ "version": "0.1.3",
24
24
  "engines": {
25
25
  "node": ">=22"
26
26
  },
@@ -54,7 +54,7 @@
54
54
  "dist",
55
55
  "CHANGELOG.md"
56
56
  ],
57
- "readme": {
57
+ "scalarReadme": {
58
58
  "title": "Scalar AsyncAPI Upgrader",
59
59
  "badges": [
60
60
  {
@@ -71,11 +71,11 @@
71
71
  },
72
72
  "sideEffects": false,
73
73
  "dependencies": {
74
- "@scalar/helpers": "0.8.2"
74
+ "@scalar/helpers": "0.9.1"
75
75
  },
76
76
  "devDependencies": {
77
77
  "vite": "8.0.0",
78
- "@scalar/types": "0.13.1"
78
+ "@scalar/types": "0.16.3"
79
79
  },
80
80
  "scripts": {
81
81
  "build": "tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json",