@scalar/express-api-reference 0.9.8 → 0.9.9

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,11 @@
1
1
  # @scalar/express-api-reference
2
2
 
3
+ ## 0.9.9
4
+
5
+ ### Patch Changes
6
+
7
+ - [#8873](https://github.com/scalar/scalar/pull/8873): refactor: migrate integrations to client-side rendering package
8
+
3
9
  ## 0.9.8
4
10
 
5
11
  ## 0.9.7
@@ -1 +1 @@
1
- {"version":3,"file":"apiReference.d.ts","sourceRoot":"","sources":["../src/apiReference.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAE7C,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAA;AASxD;;GAEG;AACH,wBAAgB,YAAY,CAAC,kBAAkB,EAAE,OAAO,CAAC,yBAAyB,CAAC,GAAG,cAAc,CAAC,KAAK,EAAE,MAAM,CAAC,CAWlH"}
1
+ {"version":3,"file":"apiReference.d.ts","sourceRoot":"","sources":["../src/apiReference.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAE7C,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAA;AASxD;;GAEG;AACH,wBAAgB,YAAY,CAAC,kBAAkB,EAAE,OAAO,CAAC,yBAAyB,CAAC,GAAG,cAAc,CAAC,KAAK,EAAE,MAAM,CAAC,CAYlH"}
@@ -1,4 +1,4 @@
1
- import { getHtmlDocument } from '@scalar/core/libs/html-rendering';
1
+ import { renderApiReference } from '@scalar/client-side-rendering';
2
2
  /**
3
3
  * The default configuration for the API Reference.
4
4
  */
@@ -16,6 +16,7 @@ export function apiReference(givenConfiguration) {
16
16
  };
17
17
  // Respond with the HTML document
18
18
  return (_, res) => {
19
- res.type('text/html').send(getHtmlDocument(configuration));
19
+ const { cdn, pageTitle, ...config } = configuration;
20
+ res.type('text/html').send(renderApiReference({ config, pageTitle, cdn }));
20
21
  };
21
22
  }
package/dist/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { HtmlRenderingConfiguration } from '@scalar/core/libs/html-rendering';
1
+ import type { HtmlRenderingConfiguration } from '@scalar/client-side-rendering';
2
2
  /**
3
3
  * The configuration for the Scalar API Reference for Express
4
4
  */
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAA;AAElF;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,0BAA0B,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAA;AAE/E;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,0BAA0B,CAAA"}
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "url": "git+https://github.com/scalar/scalar.git",
11
11
  "directory": "integrations/express"
12
12
  },
13
- "version": "0.9.8",
13
+ "version": "0.9.9",
14
14
  "engines": {
15
15
  "node": ">=22"
16
16
  },
@@ -45,7 +45,7 @@
45
45
  "documentation": "https://scalar.com/products/api-references/integrations/express"
46
46
  },
47
47
  "dependencies": {
48
- "@scalar/core": "0.5.1"
48
+ "@scalar/client-side-rendering": "0.1.2"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@types/express": "5.0.3",