Skip to content

Commit

Permalink
Merge pull request #350 from studiometa/feature/npm-deps
Browse files Browse the repository at this point in the history
[Feature] Upgrade NPM dependencies
  • Loading branch information
titouanmathis authored Jan 21, 2025
2 parents e6a9c62 + 58c021a commit c9071f7
Show file tree
Hide file tree
Showing 7 changed files with 345 additions and 503 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- ⚠️ Remove the atomic folders ([#343](https://github.com/studiometa/ui/pull/343), [a61d8e6](https://github.com/studiometa/ui/commit/a61d8e6))
- ⚠️ Upgrade twig/twig to ^3.0 ([#348](https://github.com/studiometa/ui/pull/348), [c8e3830](https://github.com/studiometa/ui/commit/c8e3830))
- ⚠️ Upgrade studiometa/twig-toolkit to ^2.0 ([#348](https://github.com/studiometa/ui/pull/348), [39b43c8](https://github.com/studiometa/ui/commit/39b43c8))
- Upgrade @studiometa/js-toolkit to ^3.0 ([#350](https://github.com/studiometa/ui/pull/350), [439288a](https://github.com/studiometa/ui/commit/439288a))

### Removed

Expand Down
808 changes: 314 additions & 494 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"esbuild": "0.24.2",
"fast-glob": "3.3.3",
"gzip-size": "7.0.0",
"oxlint": "0.15.6",
"oxlint": "0.15.7",
"prettier": "3.4.2",
"typescript": "5.7.3"
},
Expand Down
23 changes: 22 additions & 1 deletion packages/docs/migration-guides/0.2-1.0/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

You will find on this page documentation on all the breaking changes included in the v1.0 of the package.

[[toc]]

## Update [@studiometa/js-toolkit](https://github.com/studiometa/js-toolkit) to v3

The v1 of [@studiometa/ui](https://github.com/studiometa/ui) now depends on [@studiometa/js-toolkit](https://github.com/studiometa/js-toolkit) v3. Make sure to consult the [migration guide from v2 to v3](https://js-toolkit.studiometa.dev/guide/migration/v2-to-v3.html) for this package as well, it contains documentation on all the major breaking changes.
Expand All @@ -15,7 +17,7 @@ The v1 of [@studiometa/ui](https://github.com/studiometa/ui) now depends on [@st

## Update the options of the `Action` component

The [`Action` component](/components/Action/) has been reworked and its options has changed. The `method` and `selector` have been removed.
The [`Action` component](/components/Action/) has been reworked and its options has changed. The `method` and `selector` options have been removed.

```diff
<button
Expand All @@ -38,3 +40,22 @@ The atomic folders `primitives`, `atoms`, `molecules` and `organisms` have been
- {% include '@ui/atoms/Button/Button.twig' with { label: 'Button' } %}
+ {% include '@ui/Button/Button.twig' with { label: 'Button' } %}
```

## The `IconInline.twig` template has been renamed to `Icon.twig`

The deprecated `Icon/Icon.twig` template has been replaced with the new `Icon/IconInline.twig` template. Its variant `Icon/IconInlineImg.twig` has been renamed `Icon/IconImg.twig`.

```diff
- {% include '@ui/atoms/Icon/IconInline.twig' with { name: 'globe' } %}
+ {% include '@ui/Icon/Icon.twig' with { name: 'globe' } %}

- {% include '@ui/atoms/Icon/IconInlineImg.twig' with { name: 'globe' } %}
+ {% include '@ui/Icon/IconImg.twig' with { name: 'globe' } %}
```

## Minimum requirements for Composer have been upgraded

As we upgraded the [studiometa/twig-toolkit](https://github.com/studiometa/twig-toolkit) dependency to ^2.0, the Composer package [studiometa/ui](https://packagist.org/packages/studiometa/ui) now has the following minimum requirements:

- php: ^8.1
- [twig/twig](https://github.com/twigphp/Twig): ^3.0
4 changes: 2 additions & 2 deletions packages/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"build": "vitepress build ."
},
"dependencies": {
"@studiometa/js-toolkit": "^3.0.0-beta.4"
"@studiometa/js-toolkit": "^3.0.0"
},
"devDependencies": {
"@iconify-json/octicon": "1.2.2",
Expand All @@ -24,6 +24,6 @@
"tailwindcss": "3.4.17",
"unplugin-icons": "22.0.0",
"unplugin-vue-components": "28.0.0",
"vitepress": "1.5.0"
"vitepress": "1.6.1"
}
}
8 changes: 4 additions & 4 deletions packages/tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
"author": "Studio Meta <[email protected]> (https://www.studiometa.fr/)",
"license": "MIT",
"dependencies": {
"@happy-dom/global-registrator": "^16.6.0",
"@happy-dom/global-registrator": "^16.7.1",
"@jest/fake-timers": "^29.7.0",
"@studiometa/ui": "file:../ui",
"@vitest/coverage-v8": "2.1.8",
"happy-dom": "^16.6.0",
"vitest": "2.1.8"
"@vitest/coverage-v8": "3.0.2",
"happy-dom": "^16.7.1",
"vitest": "3.0.2"
},
"imports": {
"#test-utils": "./__utils__/index.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
},
"homepage": "https://github.com/studiometa/ui#readme",
"dependencies": {
"@studiometa/js-toolkit": "^3.0.0-beta.4",
"@studiometa/js-toolkit": "^3.0.0",
"deepmerge": "^4.3.1"
}
}

0 comments on commit c9071f7

Please sign in to comment.