@commercetools/nimbus-icons 3.0.0 → 3.1.0

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,30 @@
1
1
  # @commercetools/nimbus-icons
2
2
 
3
+ ## 3.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#1498](https://github.com/commercetools/nimbus/pull/1498)
8
+ [`01a0142`](https://github.com/commercetools/nimbus/commit/01a0142e37496c0b37c4ff2394d82e40eace8fba)
9
+ Thanks [@misama-ct](https://github.com/misama-ct)! - Package-shape correctness
10
+ fixes for strict TypeScript and native Node ESM consumers. Bundler-based
11
+ consumers (Vite, Webpack, Next.js) see no change.
12
+
13
+ ### `@commercetools/nimbus`
14
+ - `./setup-jsdom-polyfills` now ships type declarations. Consumers using the
15
+ documented `setupFiles: ['@commercetools/nimbus/setup-jsdom-polyfills']`
16
+ config in Jest or Vitest get autocomplete and signature checking.
17
+ - CJS consumers via `require()` (Jest in JSDOM, classic Next.js pages dir)
18
+ receive correctly-typed declarations. Previously the same `.d.ts` was served
19
+ for both ESM and CJS paths, producing subtle type mismatches.
20
+ - Type-checking under `moduleResolution: "nodenext"` or `"node16"` no longer
21
+ fails on internal Nimbus imports.
22
+
23
+ ### `@commercetools/nimbus-icons`
24
+ - Now importable from native Node ESM (e.g., Node 22+ with `"type": "module"`,
25
+ certain SSR setups that externalize `node_modules`). Previously the ESM
26
+ build failed at parse time outside a bundler.
27
+
3
28
  ## 3.0.0
4
29
 
5
30
  ## 2.10.0
@@ -1,2 +1,2 @@
1
1
  import type { SVGProps } from "react";
2
- export declare const Figma: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const Figma: (props: SVGProps<SVGSVGElement>) => import("react").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import type { SVGProps } from "react";
2
- export declare const Github: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const Github: (props: SVGProps<SVGSVGElement>) => import("react").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import type { SVGProps } from "react";
2
- export declare const HighPrecision: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const HighPrecision: (props: SVGProps<SVGSVGElement>) => import("react").JSX.Element;
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "commonjs"
3
+ }
@@ -1,2 +1,2 @@
1
1
  import type { SVGProps } from "react";
2
- export declare const Figma: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const Figma: (props: SVGProps<SVGSVGElement>) => import("react").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import type { SVGProps } from "react";
2
- export declare const Github: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const Github: (props: SVGProps<SVGSVGElement>) => import("react").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import type { SVGProps } from "react";
2
- export declare const HighPrecision: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const HighPrecision: (props: SVGProps<SVGSVGElement>) => import("react").JSX.Element;
@@ -1,6 +1,6 @@
1
- export * from "./material-icons";
2
- export { Figma } from "./custom-icons/figma";
3
- export { Github } from "./custom-icons/github";
4
- export { CommercetoolsCube } from "./custom-icons/commercetools-cube";
5
- export { HighPrecision } from "./custom-icons/high-precision";
6
- export { default as CheckCircle } from "./custom-icons/check-circle";
1
+ export * from "./material-icons/index.js";
2
+ export { Figma } from "./custom-icons/figma.js";
3
+ export { Github } from "./custom-icons/github.js";
4
+ export { CommercetoolsCube } from "./custom-icons/commercetools-cube.js";
5
+ export { HighPrecision } from "./custom-icons/high-precision.js";
6
+ export { default as CheckCircle } from "./custom-icons/check-circle.js";
package/dist/esm/index.js CHANGED
@@ -1,7 +1,7 @@
1
- export * from "./material-icons";
2
- export { Figma } from "./custom-icons/figma";
3
- export { Github } from "./custom-icons/github";
4
- export { CommercetoolsCube } from "./custom-icons/commercetools-cube";
5
- export { HighPrecision } from "./custom-icons/high-precision";
1
+ export * from "./material-icons/index.js";
2
+ export { Figma } from "./custom-icons/figma.js";
3
+ export { Github } from "./custom-icons/github.js";
4
+ export { CommercetoolsCube } from "./custom-icons/commercetools-cube.js";
5
+ export { HighPrecision } from "./custom-icons/high-precision.js";
6
6
  // Override buggy CheckCircle with correct Material filled version
7
- export { default as CheckCircle } from "./custom-icons/check-circle";
7
+ export { default as CheckCircle } from "./custom-icons/check-circle.js";