@doc-kit/core 1.2.0 → 1.2.1

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
  # @doc-kit/core
2
2
 
3
+ ## 1.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1105](https://github.com/nodejs/doc-kit/pull/1105) [`615aabe`](https://github.com/nodejs/doc-kit/commit/615aabeb1955a8028146e26fd4589c1172f58367) Thanks [@ryzrr](https://github.com/ryzrr)! - fix(metadata): link class types whose name starts with an acronym
8
+
3
9
  ## 1.2.0
4
10
 
5
11
  ### Minor Changes
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@doc-kit/core",
3
3
  "type": "module",
4
- "version": "1.2.0",
4
+ "version": "1.2.1",
5
5
  "description": "The doc-kit engine: the pipeline and shared APIs that power the doc-kit generators and CLI",
6
6
  "repository": {
7
7
  "type": "git",
@@ -47,7 +47,7 @@
47
47
  "dependencies": {
48
48
  "@actions/core": "^3.0.0",
49
49
  "@node-core/rehype-shiki": "^1.5.0",
50
- "@swc/html-wasm": "^1.15.46",
50
+ "@swc/html-wasm": "^1.16.1",
51
51
  "@swc/wasm": "^1.15.46",
52
52
  "acorn": "^8.17.0",
53
53
  "cosmiconfig": "^9.0.2",
@@ -475,6 +475,7 @@
475
475
  "magnetometer": "https://developer.mozilla.org/docs/Web/API/Magnetometer",
476
476
  "managedmediasource": "https://developer.mozilla.org/docs/Web/API/ManagedMediaSource",
477
477
  "managedsourcebuffer": "https://developer.mozilla.org/docs/Web/API/ManagedSourceBuffer",
478
+ "mathmlanchorelement": "https://developer.mozilla.org/docs/Web/API/MathMLAnchorElement",
478
479
  "mathmlelement": "https://developer.mozilla.org/docs/Web/API/MathMLElement",
479
480
  "mediacapabilities": "https://developer.mozilla.org/docs/Web/API/MediaCapabilities",
480
481
  "mediadeviceinfo": "https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo",
@@ -72,7 +72,7 @@ export const resolveTypeReference = (name, typeMap) => {
72
72
  // Transform Node.js types like 'vm.Something'.
73
73
  if (MODULE_QUALIFIED_NAME.test(name)) {
74
74
  const [mod, ...pieces] = name.split('.');
75
- const isClass = pieces.at(-1).match(/^[A-Z][a-z]/);
75
+ const isClass = pieces.at(-1).match(/^[A-Z](?=.*[a-z])/);
76
76
 
77
77
  return `${mod}.html#${isClass ? 'class-' : ''}${slug(name)}`;
78
78
  }