@synerise/ds-code-snippet 2.0.9 → 2.0.10

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
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.0.10](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-snippet@2.0.9...@synerise/ds-code-snippet@2.0.10) (2026-10-26)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * add explicit .js to extensionless bare subpath imports ([b38cba6](https://github.com/Synerise/synerise-design/commit/b38cba6bae5c5aa10276e714bb6fb67c479bbde6))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [2.0.9](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-snippet@2.0.8...@synerise/ds-code-snippet@2.0.9) (2026-10-22)
7
18
 
8
19
  **Note:** Version bump only for package @synerise/ds-code-snippet
@@ -1,10 +1,10 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import hljs from "highlight.js/lib/core";
3
- import css from "highlight.js/lib/languages/css";
4
- import javascript from "highlight.js/lib/languages/javascript";
5
- import json from "highlight.js/lib/languages/json";
6
- import typescript from "highlight.js/lib/languages/typescript";
7
- import xml from "highlight.js/lib/languages/xml";
2
+ import hljs from "highlight.js/lib/core.js";
3
+ import css from "highlight.js/lib/languages/css.js";
4
+ import javascript from "highlight.js/lib/languages/javascript.js";
5
+ import json from "highlight.js/lib/languages/json.js";
6
+ import typescript from "highlight.js/lib/languages/typescript.js";
7
+ import xml from "highlight.js/lib/languages/xml.js";
8
8
  import { useRef, useCallback, useEffect } from "react";
9
9
  import { Highlight as Highlight$1 } from "./Highlight.styles.js";
10
10
  const BUNDLED_LANGUAGES = {
@@ -43,7 +43,7 @@ const Highlight = ({
43
43
  try {
44
44
  const module = await import(
45
45
  /* @vite-ignore */
46
- `highlight.js/lib/languages/${language}`
46
+ `highlight.js/lib/languages/${language}.js`
47
47
  );
48
48
  hljs.registerLanguage(language, module.default);
49
49
  registeredLanguages.add(language);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-code-snippet",
3
- "version": "2.0.9",
3
+ "version": "2.0.10",
4
4
  "description": "CodeSnippet UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -43,10 +43,10 @@
43
43
  ],
44
44
  "types": "dist/index.d.ts",
45
45
  "dependencies": {
46
- "@synerise/ds-button": "^2.1.4",
47
- "@synerise/ds-copy-icon": "^2.0.9",
48
- "@synerise/ds-icon": "^2.2.2",
49
- "@synerise/ds-scrollbar": "^2.0.8",
46
+ "@synerise/ds-button": "^2.1.5",
47
+ "@synerise/ds-copy-icon": "^2.0.10",
48
+ "@synerise/ds-icon": "^2.2.3",
49
+ "@synerise/ds-scrollbar": "^2.0.9",
50
50
  "highlight.js": "^10.7.2",
51
51
  "react-animate-height": "^2.0.23"
52
52
  },
@@ -59,5 +59,5 @@
59
59
  "react": ">=16.9.0 <= 18.3.1",
60
60
  "styled-components": "^5.3.3"
61
61
  },
62
- "gitHead": "953d50843fbcbec956b6252a6185def119652282"
62
+ "gitHead": "5ac0f7dcb7c3995b402c86c087d8f32770f80a1d"
63
63
  }