carbon-preprocess-svelte 0.8.0 → 0.9.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
@@ -5,6 +5,19 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.9.0](https://github.com/carbon-design-system/carbon-preprocess-svelte/releases/tag/v0.9.0) - 2022-04-17
9
+
10
+ - upgrade `carbon-components-svelte` to v0.63.0 and rebuild components API used by `optimizeImports`
11
+ - set latest major version of `carbon-pictograms-svelte` to `12`
12
+
13
+ ## [0.8.2](https://github.com/carbon-design-system/carbon-preprocess-svelte/releases/tag/v0.8.2) - 2022-04-10
14
+
15
+ - set latest major version of `carbon-icons-svelte` to `11`
16
+
17
+ ## [0.8.1](https://github.com/carbon-design-system/carbon-preprocess-svelte/releases/tag/v0.8.1) - 2022-04-10
18
+
19
+ - hot fix to re-build components imports map using a non-linked version of `carbon-components-svelte`
20
+
8
21
  ## [0.8.0](https://github.com/carbon-design-system/carbon-preprocess-svelte/releases/tag/v0.8.0) - 2022-04-10
9
22
 
10
23
  - upgrade `@carbon/icons` to v11.0.1
package/README.md CHANGED
@@ -53,11 +53,17 @@ The preprocessor optimizes imports from the following packages:
53
53
  - import { Button } from "carbon-components-svelte";
54
54
  - import { Add16 } from "carbon-icons-svelte";
55
55
  - import { Airplane } from "carbon-pictograms-svelte";
56
- + import Button from "carbon-components-svelte/Button/Button.svelte";
57
- + import Add16 from "carbon-icons-svelte/lib/Add16/Add16.svelte";
58
- + import Airplane from "carbon-pictograms-svelte/lib/Airplane/Airplane.svelte";
56
+ + import Button from "carbon-components-svelte/Button.svelte";
57
+ + import Add16 from "carbon-icons-svelte/lib/Add16.svelte";
58
+ + import Airplane from "carbon-pictograms-svelte/lib/Airplane.svelte";
59
59
  ```
60
60
 
61
+ **Note**
62
+
63
+ A minimum version of `carbon-preprocess-svelte@0.9.0` is required for `carbon-component-svelte@0.63.0`.
64
+
65
+ A minimum version of `carbon-preprocess-svelte@0.8.0` is required for `carbon-icons-svelte@11`.
66
+
61
67
  #### Usage
62
68
 
63
69
  ```js
package/dist/index.js CHANGED
@@ -22840,8 +22840,8 @@ var CARBON_SVELTE = {
22840
22840
  };
22841
22841
  var LATEST_MAJOR_VERSION = {
22842
22842
  [CARBON_SVELTE.components]: "0",
22843
- [CARBON_SVELTE.icons]: "10",
22844
- [CARBON_SVELTE.pictograms]: "11"
22843
+ [CARBON_SVELTE.icons]: "11",
22844
+ [CARBON_SVELTE.pictograms]: "12"
22845
22845
  };
22846
22846
  var API_COMPONENTS = `src/${CARBON_SVELTE.components}.js`;
22847
22847
  var EXT_SVELTE = /\.(svelte)$/;
@@ -22884,7 +22884,7 @@ function getCarbonVersions() {
22884
22884
  var components = {
22885
22885
  "metadata": {
22886
22886
  "package": "carbon-components-svelte",
22887
- "version": "0.62.3",
22887
+ "version": "0.63.0",
22888
22888
  "exports": 169
22889
22889
  },
22890
22890
  "components": {
@@ -23428,7 +23428,7 @@ function optimizeImports() {
23428
23428
  break;
23429
23429
  case CARBON_SVELTE.pictograms:
23430
23430
  replaceContent(node2, node2.specifiers.map(({local, imported}) => {
23431
- if (CARBON_VERSIONS[CARBON_SVELTE.pictograms] === "11") {
23431
+ if (CARBON_VERSIONS[CARBON_SVELTE.pictograms] === "11" || CARBON_VERSIONS[CARBON_SVELTE.pictograms] === "12") {
23432
23432
  return `import ${local.name} from "${CARBON_SVELTE.pictograms}/lib/${imported.name}.svelte";`;
23433
23433
  }
23434
23434
  return `import ${local.name} from "${CARBON_SVELTE.pictograms}/lib/${imported.name}/${imported.name}.svelte";`;
@@ -77268,7 +77268,7 @@ function icons2() {
77268
77268
  var pictograms = {
77269
77269
  "metadata": {
77270
77270
  "package": "@carbon/pictograms",
77271
- "version": "11.24.0",
77271
+ "version": "12.0.2",
77272
77272
  "exports": 803
77273
77273
  },
77274
77274
  "pictograms": {
package/dist/index.mjs CHANGED
@@ -22851,8 +22851,8 @@ var CARBON_SVELTE = {
22851
22851
  };
22852
22852
  var LATEST_MAJOR_VERSION = {
22853
22853
  [CARBON_SVELTE.components]: "0",
22854
- [CARBON_SVELTE.icons]: "10",
22855
- [CARBON_SVELTE.pictograms]: "11"
22854
+ [CARBON_SVELTE.icons]: "11",
22855
+ [CARBON_SVELTE.pictograms]: "12"
22856
22856
  };
22857
22857
  var API_COMPONENTS = `src/${CARBON_SVELTE.components}.js`;
22858
22858
  var EXT_SVELTE = /\.(svelte)$/;
@@ -22895,7 +22895,7 @@ function getCarbonVersions() {
22895
22895
  var components = {
22896
22896
  "metadata": {
22897
22897
  "package": "carbon-components-svelte",
22898
- "version": "0.62.3",
22898
+ "version": "0.63.0",
22899
22899
  "exports": 169
22900
22900
  },
22901
22901
  "components": {
@@ -23439,7 +23439,7 @@ function optimizeImports() {
23439
23439
  break;
23440
23440
  case CARBON_SVELTE.pictograms:
23441
23441
  replaceContent(node2, node2.specifiers.map(({local, imported}) => {
23442
- if (CARBON_VERSIONS[CARBON_SVELTE.pictograms] === "11") {
23442
+ if (CARBON_VERSIONS[CARBON_SVELTE.pictograms] === "11" || CARBON_VERSIONS[CARBON_SVELTE.pictograms] === "12") {
23443
23443
  return `import ${local.name} from "${CARBON_SVELTE.pictograms}/lib/${imported.name}.svelte";`;
23444
23444
  }
23445
23445
  return `import ${local.name} from "${CARBON_SVELTE.pictograms}/lib/${imported.name}/${imported.name}.svelte";`;
@@ -77279,7 +77279,7 @@ function icons2() {
77279
77279
  var pictograms = {
77280
77280
  "metadata": {
77281
77281
  "package": "@carbon/pictograms",
77282
- "version": "11.24.0",
77282
+ "version": "12.0.2",
77283
77283
  "exports": 803
77284
77284
  },
77285
77285
  "pictograms": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carbon-preprocess-svelte",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Collection of Svelte preprocessors for the Carbon Design System",
6
6
  "module": "./dist/index.mjs",
@@ -37,11 +37,11 @@
37
37
  "@carbon/elements": "10.31.0",
38
38
  "@carbon/icon-helpers": "^10.16.0",
39
39
  "@carbon/icons": "^11.0.1",
40
- "@carbon/pictograms": "^11.24.0",
40
+ "@carbon/pictograms": "^12.0.2",
41
41
  "@types/carbon__elements": "10.31.0",
42
42
  "@types/carbon__icon-helpers": "^10.7.1",
43
43
  "@types/node": "^15.0.2",
44
- "carbon-components-svelte": "^0.62.3",
44
+ "carbon-components-svelte": "^0.63.0",
45
45
  "esbuild": "^0.11.19",
46
46
  "npm-run-all": "^4.1.5",
47
47
  "prettier": "^2.6.2",
@@ -1,7 +1,7 @@
1
1
  export const components = {
2
2
  "metadata": {
3
3
  "package": "carbon-components-svelte",
4
- "version": "0.62.3",
4
+ "version": "0.63.0",
5
5
  "exports": 169
6
6
  },
7
7
  "components": {