@ingredient-icons/core 0.2.0 → 0.3.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/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { SIZES } from "./data.js";
2
- export { STYLE, TAXONOMY_COMMIT, VERSION } from "./data.js";
2
+ export { STYLE, TAXONOMY_COMMIT, TAXONOMY_RELEASE, VERSION } from "./data.js";
3
3
  /** Sizes shipped in the package, in pixels, as square WebP files. */
4
4
  export type IconSize = (typeof SIZES)[number];
5
5
  export declare const sizes: readonly IconSize[];
@@ -21,7 +21,7 @@ export declare function findIcon(id: string): Icon | undefined;
21
21
  /** Path of an icon inside the package: "icons/webp/128/en_shallot.webp". */
22
22
  export declare function iconPath(id: string, size?: IconSize): string | undefined;
23
23
  /** Default CDN, pinned to this package's version so URLs never change under you. */
24
- export declare const CDN_URL = "https://cdn.jsdelivr.net/npm/@ingredient-icons/core@0.2.0";
24
+ export declare const CDN_URL = "https://cdn.jsdelivr.net/npm/@ingredient-icons/core@0.3.0";
25
25
  /**
26
26
  * URL of an icon. Pass `baseUrl` to serve the package's `icons/` folder yourself
27
27
  * instead of the public CDN.
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { FILES, NAMES, PARENTS, SIZES, VERSION } from "./data.js";
2
- export { STYLE, TAXONOMY_COMMIT, VERSION } from "./data.js";
2
+ export { STYLE, TAXONOMY_COMMIT, TAXONOMY_RELEASE, VERSION } from "./data.js";
3
3
  export const sizes = SIZES;
4
4
  /** Every Open Food Facts id that has its own icon. */
5
5
  export const ids = Object.keys(FILES);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ingredient-icons/core",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "Soft 3D icons for cooking ingredients, keyed by the Open Food Facts taxonomy, with ancestor fallback",
5
5
  "license": "(MIT AND CC0-1.0 AND ODbL-1.0)",
6
6
  "type": "module",