Skip to content

Upgrade figspec to v2#280

Merged
ghengeveld merged 1 commit intomasterfrom
pocka/upgrade-figspec
Dec 7, 2025
Merged

Upgrade figspec to v2#280
ghengeveld merged 1 commit intomasterfrom
pocka/upgrade-figspec

Conversation

@pocka
Copy link
Copy Markdown
Collaborator

@pocka pocka commented Nov 30, 2025

Figspec v2 eliminates lit dependency (#245 (comment)). It also got accessibility improvements lately.


I cannot test this due to the new ridiculous rate limit.

TypeScript compiles the source code without error, but whether runtime works is untested. THIS PULL REQUEST IS PROVIDED "AS IS".

Combined with their shift of strategy and priority in recent years, I will no longer touch this addon's figma/figspec integration. No more patch from me on these functionality. Don't ping me on Figma/figspec-related issues. Figspec the library (@figspec/components and @figspec/react) will be maintained regardless of this.


(for those who work on this)

The root package.json depends on @storybook/addon-designs: "*" and it pulls in the latest published @storybook/addon-designs. As a result of this, you'll end up having two figspec versions, each @figspec/components and @figspec/react. If you see v1 UI after build, try temporarily putting overrides to pnpm-workspace.yaml and re-install the workspace.

# ...

overrides:
  "@figspec/components": "^2.0.0"

Do not forget to reset the change and re-install before commit.

@ghengeveld
Copy link
Copy Markdown
Member

@pocka Thanks for doing this! Would you consider this a patch, or is this a breaking change somehow? Please add the appropriate label 🙏

@pocka
Copy link
Copy Markdown
Collaborator Author

pocka commented Dec 5, 2025

Definetely not a breaking change / major. Honestly I'm not sure which, minor or patch, would be appropriate this case...

  • No changes to the addon's API (parameters, decorators, etc.)
  • UI is completely different.

@ghengeveld
Copy link
Copy Markdown
Member

Considering the UI is changed, I think this should be a minor update then.

@ghengeveld ghengeveld added the minor Increment the minor version when merged label Dec 7, 2025
@ghengeveld ghengeveld merged commit 0bd505b into master Dec 7, 2025
2 checks passed
@ghengeveld ghengeveld deleted the pocka/upgrade-figspec branch December 7, 2025 22:00
@pocka pocka mentioned this pull request Dec 20, 2025
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

minor Increment the minor version when merged type: figspec

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants