Skip to content

Commit

Permalink
Version Packages (#30)
Browse files Browse the repository at this point in the history
* Version Packages

* Update lockfile

* Ensure lockfile gets updated on changeset versioning

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Fotis Papadogeorgopoulos <[email protected]>
  • Loading branch information
3 people authored Aug 19, 2024
1 parent 5d06032 commit 751d554
Show file tree
Hide file tree
Showing 20 changed files with 97 additions and 67 deletions.
5 changes: 0 additions & 5 deletions .changeset/chatty-actors-crash.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fuzzy-rice-notice.md

This file was deleted.

12 changes: 0 additions & 12 deletions .changeset/olive-pumpkins-pay.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/rare-pens-wait.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/shaggy-gifts-decide.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/ten-cups-wonder.md

This file was deleted.

2 changes: 2 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ jobs:
id: changesets
uses: changesets/action@v1
with:
# Calls out to `changeset version`, and also updates the lockfile
version: pnpm changeset:version
# We use a recursive pnpm script under the hood, to ensure that
# publishing runs topologically. Changesets does not do this out of
# the box. @see: https://github.com/changesets/changesets/issues/238
Expand Down
4 changes: 2 additions & 2 deletions examples/shared-library/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
"build": "tsx generate-icon-modules.mts && tshy && cp src/icons/*.svg dist/esm/icons"
},
"dependencies": {
"@svg-use/core": "workspace:^0",
"@svg-use/react": "workspace:^0"
"@svg-use/core": "workspace:^0.3.0",
"@svg-use/react": "workspace:^0.3.0"
},
"peerDependencies": {
"react": "^18"
Expand Down
6 changes: 3 additions & 3 deletions examples/vite-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
"preview": "vite preview"
},
"dependencies": {
"@svg-use/react": "workspace:^0",
"@svg-use/react": "workspace:^0.3.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"shared-library": "workspace:*"
},
"devDependencies": {
"@svg-use/react": "workspace:^0",
"@svg-use/rollup": "workspace:^0",
"@svg-use/react": "workspace:^0.3.0",
"@svg-use/rollup": "workspace:^0.3.0",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react": "^4.3.1",
Expand Down
6 changes: 3 additions & 3 deletions examples/webpack-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
"dev": "webpack serve --open"
},
"dependencies": {
"@svg-use/react": "workspace:^0",
"@svg-use/react": "workspace:^0.3.0",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@svg-use/react": "workspace:^0",
"@svg-use/webpack": "workspace:^0",
"@svg-use/react": "workspace:^0.3.0",
"@svg-use/webpack": "workspace:^0.3.0",
"@swc-node/register": "1.10.9",
"@swc/core": "^1.7.6",
"@types/node": "20.14.14",
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"scripts": {
"api-docs": "pnpm --recursive api-docs",
"build": "pnpm --recursive run build",
"changeset:release": "changeset tag && pnpm --recursive publish",
"changeset:release": "pnpm build && changeset tag && pnpm --recursive publish",
"changeset:version": "changeset version && pnpm install --lockfile-only",
"check-types": "pnpm --recursive run check-types",
"preinstall": "npx only-allow pnpm",
"lint": "pnpm --recursive lint",
Expand Down
12 changes: 12 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# @svg-use/core

## 0.3.0

### Minor Changes

- 86c4f14: Export all publicly-visible types
- 86c4f14: Breaking change: The default theme has changed.

- Instead of separating fills and strokes, equal colors are substituted in the
same way. This makes it easier to support monotone/duotone/tritone themes,
and reduces the output size.
- The CSS custom properties have changed, to `--svg-use-color-*`

## 0.2.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@svg-use/core",
"version": "0.2.0",
"version": "0.3.0",
"description": "Tools and bundler plugins for loading SVG images via use[href], for use in components.",
"license": "MIT",
"author": "Fotis Papadogeorgopoulos <[email protected]> (https://fotis.xyz)",
Expand Down
9 changes: 9 additions & 0 deletions packages/react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @svg-use/react

## 0.3.0

### Minor Changes

- 86c4f14: Breaking change: The default theme has been updated. ThemeProps now
accept color/colorSecondary/colorTertiary, instead of separating fills and
strokes.
- 86c4f14: Export the default Component in bundler ambient type declarations.

## 0.2.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@svg-use/react",
"version": "0.2.0",
"version": "0.3.0",
"description": "Tools and bundler plugins for loading SVG images via use[href], for use in components.",
"license": "MIT",
"author": "Fotis Papadogeorgopoulos <[email protected]> (https://fotis.xyz)",
Expand Down
23 changes: 23 additions & 0 deletions packages/rollup/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
# @svg-use/rollup

## 0.3.0

### Minor Changes

- 86c4f14: Introduce ?noTheme config query, in types, docs and examples.
- 86c4f14: Breaking change: The default theme has changed.

- Instead of separating fills and strokes, equal colors are substituted in the
same way. This makes it easier to support monotone/duotone/tritone themes,
and reduces the output size.
- The CSS custom properties have changed, to `--svg-use-color-*`

- 86c4f14: Export the default Component in bundler ambient type declarations.

### Patch Changes

- Updated dependencies [86c4f14]
- Updated dependencies [86c4f14]
- Updated dependencies [86c4f14]
- Updated dependencies [86c4f14]
- @svg-use/core@0.3.0
- @svg-use/react@0.3.0

## 0.2.0

### Minor Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/rollup/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@svg-use/rollup",
"version": "0.2.0",
"version": "0.3.0",
"description": "Tools and bundler plugins for loading SVG images via use[href], for use in components.",
"license": "MIT",
"author": "Fotis Papadogeorgopoulos <[email protected]> (https://fotis.xyz)",
Expand Down Expand Up @@ -46,11 +46,11 @@
},
"dependencies": {
"@rollup/pluginutils": "^5.1.0",
"@svg-use/core": "workspace:^0",
"@svg-use/core": "workspace:^0.3.0",
"rollup": "4.20.0"
},
"peerDependencies": {
"@svg-use/react": "workspace:^0"
"@svg-use/react": "workspace:^0.3.0"
},
"peerDependenciesMeta": {
"@svg-use/react": {
Expand Down
23 changes: 23 additions & 0 deletions packages/webpack/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
# @svg-use/webpack

## 0.3.0

### Minor Changes

- 86c4f14: Breaking change: The default theme has changed.

- Instead of separating fills and strokes, equal colors are substituted in the
same way. This makes it easier to support monotone/duotone/tritone themes,
and reduces the output size.
- The CSS custom properties have changed, to `--svg-use-color-*`

- 86c4f14: Introduce ?noTheme config query, in types, docs and examples.
- 86c4f14: Export the default Component in bundler ambient type declarations.

### Patch Changes

- Updated dependencies [86c4f14]
- Updated dependencies [86c4f14]
- Updated dependencies [86c4f14]
- Updated dependencies [86c4f14]
- @svg-use/core@0.3.0
- @svg-use/react@0.3.0

## 0.2.0

### Minor Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/webpack/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@svg-use/webpack",
"version": "0.2.0",
"version": "0.3.0",
"description": "Tools and bundler plugins for loading SVG images via use[href], for use in components.",
"license": "MIT",
"author": "Fotis Papadogeorgopoulos <[email protected]> (https://fotis.xyz)",
Expand Down Expand Up @@ -45,11 +45,11 @@
"test": "vitest"
},
"dependencies": {
"@svg-use/core": "workspace:^0",
"@svg-use/core": "workspace:^0.3.0",
"loader-utils": "^3.3.1"
},
"peerDependencies": {
"@svg-use/react": "workspace:^0"
"@svg-use/react": "workspace:^0.3.0"
},
"peerDependenciesMeta": {
"@svg-use/react": {
Expand Down
20 changes: 10 additions & 10 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 751d554

Please sign in to comment.