chore: Dependency overhaul and security fixes #105
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
style-dictionary:4.3.0→5.1.1(breaking changes addressed)vitest:3.2.4→4.0.16(breaking changes verified)@tokens-studio/sd-transforms:1.2.0→2.0.3resolutionssection frompackage.jsonWhy
This PR modernizes the project's dependency stack and removes unused tooling:
Style-dictionary v5 compatibility: Style-dictionary v5 requires Node.js v22.0.0+ and introduces breaking changes around token references and reference syntax. This update ensures compatibility with the latest version.
Removed Storybook: Storybook and React dependencies were removed as they are no longer used in this repository. The
src/stories/directory and all Storybook configuration files have been removed. This significantly simplifies thedevDependenciesand makes the project easier for developers to maintain. Design tokens are available through Cloud Manager's dev tools, making the Storybook setup redundant.Dependency maintenance: All devDependencies have been updated to their latest versions to benefit from bug fixes, security patches, and performance improvements.
Cleanup: Removed legacy
resolutionsthat were no longer necessary, simplifying dependency management.Breaking Changes
Node.js Version Requirement
18.18.0→22.0.0(LTS)voltaconfiguration to reflect this requirementStyle-dictionary v5 Breaking Changes (Addressed)
.valuesuffix)spacingPxToRem) is compatible with new error handlingVitest v4 Breaking Changes (Verified)
expect,describe,it) - no breaking changesTest Plan
node --versionShould be 22.0.0 or lateryarn installyarn testExpected: All 8 tests inspacingPxToRem.test.tsshould passyarn generateExpected: Token files should be generated successfully indist/directoryFiles Changed
package.json: Updated dependencies, removed Storybook/React deps, removed resolutions, updated Node versionyarn.lock: Regenerated with updated dependencies.storybook/configuration filessrc/stories/filesdist/files (regenerated with style-dictionary v5)