carbon-preprocess-svelte 0.7.0 → 0.8.2

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,19 +5,32 @@ 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.7.0](https://github.com/IBM/carbon-preprocess-svelte/releases/tag/v0.7.0) - 2022-03-19
8
+ ## [0.8.2](https://github.com/carbon-design-system/carbon-preprocess-svelte/releases/tag/v0.8.2) - 2022-04-10
9
+
10
+ - set latest major version of `carbon-icons-svelte` to `11`
11
+
12
+ ## [0.8.1](https://github.com/carbon-design-system/carbon-preprocess-svelte/releases/tag/v0.8.1) - 2022-04-10
13
+
14
+ - hot fix to re-build components imports map using a non-linked version of `carbon-components-svelte`
15
+
16
+ ## [0.8.0](https://github.com/carbon-design-system/carbon-preprocess-svelte/releases/tag/v0.8.0) - 2022-04-10
17
+
18
+ - upgrade `@carbon/icons` to v11.0.1
19
+ - update `optimizeImports` to support `carbon-icons-svelte@11` component imports
20
+
21
+ ## [0.7.0](https://github.com/carbon-design-system/carbon-preprocess-svelte/releases/tag/v0.7.0) - 2022-03-19
9
22
 
10
23
  - upgrade `carbon-components-svelte` to v0.62.0 to account for the removed `Copy` component and inlined icon components
11
24
 
12
- ## [0.6.0](https://github.com/IBM/carbon-preprocess-svelte/releases/tag/v0.6.0) - 2021-07-11
25
+ ## [0.6.0](https://github.com/carbon-design-system/carbon-preprocess-svelte/releases/tag/v0.6.0) - 2021-07-11
13
26
 
14
27
  - upgrade `carbon-components-svelte` to v0.40.0 to include `Breakpoint`, `Theme` components for `optimizeImports`
15
28
 
16
- ## [0.5.0](https://github.com/IBM/carbon-preprocess-svelte/releases/tag/v0.5.0) - 2021-07-05
29
+ ## [0.5.0](https://github.com/carbon-design-system/carbon-preprocess-svelte/releases/tag/v0.5.0) - 2021-07-05
17
30
 
18
31
  - upgrade `carbon-components-svelte` to v0.39.0 to include `RecursiveList`, `TreeView` components for `optimizeImports`
19
32
 
20
- ## [0.4.0](https://github.com/IBM/carbon-preprocess-svelte/releases/tag/v0.4.0) - 2021-06-28
33
+ ## [0.4.0](https://github.com/carbon-design-system/carbon-preprocess-svelte/releases/tag/v0.4.0) - 2021-06-28
21
34
 
22
35
  **Features**
23
36
 
@@ -27,7 +40,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
27
40
 
28
41
  - default `include` preprocessor entry test regex to high-level test option
29
42
 
30
- ## [0.3.0](https://github.com/IBM/carbon-preprocess-svelte/releases/tag/v0.3.0) - 2021-05-21
43
+ ## [0.3.0](https://github.com/carbon-design-system/carbon-preprocess-svelte/releases/tag/v0.3.0) - 2021-05-21
31
44
 
32
45
  **Features**
33
46
 
@@ -37,7 +50,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
37
50
 
38
51
  - support custom `test` regex per script/markup object in `include` preprocessor
39
52
 
40
- ## [0.2.0](https://github.com/IBM/carbon-preprocess-svelte/releases/tag/v0.2.0) - 2021-05-21
53
+ ## [0.2.0](https://github.com/carbon-design-system/carbon-preprocess-svelte/releases/tag/v0.2.0) - 2021-05-21
41
54
 
42
55
  **Features**
43
56
 
@@ -48,25 +61,25 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
48
61
  - enrich preprocessor descriptions
49
62
  - simplify sample SvelteKit set-up
50
63
 
51
- ## [0.1.0](https://github.com/IBM/carbon-preprocess-svelte/releases/tag/v0.1.0) - 2021-05-11
64
+ ## [0.1.0](https://github.com/carbon-design-system/carbon-preprocess-svelte/releases/tag/v0.1.0) - 2021-05-11
52
65
 
53
66
  **Documentation**
54
67
 
55
68
  - improve preprocessor descriptions, add sample SvelteKit set-up
56
69
 
57
- ## [0.1.0-rc.5](https://github.com/IBM/carbon-preprocess-svelte/releases/tag/v0.1.0-rc.5) - 2021-05-11
70
+ ## [0.1.0-rc.5](https://github.com/carbon-design-system/carbon-preprocess-svelte/releases/tag/v0.1.0-rc.5) - 2021-05-11
58
71
 
59
72
  **Fixes**
60
73
 
61
74
  - add separate entry point for CJS bundle
62
75
 
63
- ## [0.1.0-rc.4](https://github.com/IBM/carbon-preprocess-svelte/releases/tag/v0.1.0-rc.4) - 2021-05-10
76
+ ## [0.1.0-rc.4](https://github.com/carbon-design-system/carbon-preprocess-svelte/releases/tag/v0.1.0-rc.4) - 2021-05-10
64
77
 
65
78
  **Fixes**
66
79
 
67
80
  - add TypeScript as a direct dependency
68
81
 
69
- ## [0.1.0-rc.3](https://github.com/IBM/carbon-preprocess-svelte/releases/tag/v0.1.0-rc.3) - 2021-05-10
82
+ ## [0.1.0-rc.3](https://github.com/carbon-design-system/carbon-preprocess-svelte/releases/tag/v0.1.0-rc.3) - 2021-05-10
70
83
 
71
84
  **Features**
72
85
 
@@ -76,7 +89,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
76
89
 
77
90
  - list available theme options for the `elements` preprocessor
78
91
 
79
- ## [0.1.0-rc.2](https://github.com/IBM/carbon-preprocess-svelte/releases/tag/v0.1.0-rc.2) - 2021-05-08
92
+ ## [0.1.0-rc.2](https://github.com/carbon-design-system/carbon-preprocess-svelte/releases/tag/v0.1.0-rc.2) - 2021-05-08
80
93
 
81
94
  **Fixes**
82
95
 
@@ -86,7 +99,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
86
99
 
87
100
  - add `optimizeCss` API to README
88
101
 
89
- ## [0.1.0-rc.1](https://github.com/IBM/carbon-preprocess-svelte/releases/tag/v0.1.0-rc.1) - 2021-05-08
102
+ ## [0.1.0-rc.1](https://github.com/carbon-design-system/carbon-preprocess-svelte/releases/tag/v0.1.0-rc.1) - 2021-05-08
90
103
 
91
104
  **Fixes**
92
105
 
@@ -99,6 +112,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99
112
 
100
113
  - use ESM instead of CJS syntax in `svelte.config.js` usage examples
101
114
 
102
- ## [0.1.0-rc.0](https://github.com/IBM/carbon-preprocess-svelte/releases/tag/v0.1.0-rc.0) - 2021-05-07
115
+ ## [0.1.0-rc.0](https://github.com/carbon-design-system/carbon-preprocess-svelte/releases/tag/v0.1.0-rc.0) - 2021-05-07
103
116
 
104
117
  - initial release
package/LICENSE CHANGED
@@ -186,7 +186,7 @@
186
186
  same "printed page" as the copyright notice for easier
187
187
  identification within third-party archives.
188
188
 
189
- Copyright [yyyy] [name of copyright owner]
189
+ Copyright 2021 IBM
190
190
 
191
191
  Licensed under the Apache License, Version 2.0 (the "License");
192
192
  you may not use this file except in compliance with the License.
package/README.md CHANGED
@@ -43,9 +43,9 @@ This library contains the following preprocessors and plugins:
43
43
 
44
44
  The preprocessor optimizes imports from the following packages:
45
45
 
46
- - [carbon-components-svelte](https://github.com/IBM/carbon-components-svelte)
47
- - [carbon-icons-svelte](https://github.com/IBM/carbon-icons-svelte)
48
- - [carbon-pictograms-svelte](https://github.com/IBM/carbon-pictograms-svelte)
46
+ - [carbon-components-svelte](https://github.com/carbon-design-system/carbon-components-svelte)
47
+ - [carbon-icons-svelte](https://github.com/carbon-design-system/carbon-icons-svelte)
48
+ - [carbon-pictograms-svelte](https://github.com/carbon-design-system/carbon-pictograms-svelte)
49
49
 
50
50
  **Example**
51
51
 
@@ -195,7 +195,7 @@ interface ElementsOptions {
195
195
 
196
196
  `icons` is a Svelte markup preprocessor that inlines [Carbon SVG icons](https://www.carbondesignsystem.com/guidelines/icons/library/).
197
197
 
198
- The only required attribute is `name`, which represents the module name of the icon. Refer to [carbon-icons-svelte/ICON_INDEX.md](https://github.com/IBM/carbon-icons-svelte/blob/master/ICON_INDEX.md) for a list of supported icons.
198
+ The only required attribute is `name`, which represents the module name of the icon. Refer to [carbon-icons-svelte/ICON_INDEX.md](https://github.com/carbon-design-system/carbon-icons-svelte/blob/master/ICON_INDEX.md) for a list of supported icons.
199
199
 
200
200
  **Example**
201
201
 
@@ -219,7 +219,7 @@ export default {
219
219
 
220
220
  `pictograms` is a Svelte markup preprocessor that inlines [Carbon SVG pictograms](https://www.carbondesignsystem.com/guidelines/pictograms/library/).
221
221
 
222
- The only required attribute is `name`, which represents the module name of the pictogram. Refer to [carbon-pictograms-svelte/PICTOGRAM_INDEX.md](https://github.com/IBM/carbon-pictograms-svelte/blob/master/PICTOGRAM_INDEX.md) for a list of supported pictograms.
222
+ The only required attribute is `name`, which represents the module name of the pictogram. Refer to [carbon-pictograms-svelte/PICTOGRAM_INDEX.md](https://github.com/carbon-design-system/carbon-pictograms-svelte/blob/master/PICTOGRAM_INDEX.md) for a list of supported pictograms.
223
223
 
224
224
  **Example**
225
225
 
@@ -1,6 +1,9 @@
1
- import { BuildApi } from "../build";
1
+ import type { BuildApi } from "../build";
2
+ declare type ExportName = string;
3
+ interface BuildComponentsApi {
4
+ path: string;
5
+ }
2
6
  export interface BuildComponents extends BuildApi {
3
- components: Record<string, {
4
- path: string;
5
- }>;
7
+ components: Record<ExportName, BuildComponentsApi>;
6
8
  }
9
+ export {};
@@ -11,5 +11,9 @@ export interface BuildApi {
11
11
  * @example "0.32.0"
12
12
  */
13
13
  version: string;
14
+ /**
15
+ * Number of exports
16
+ */
17
+ exports: number;
14
18
  };
15
19
  }