Skip to content

feat: community add-on experimental#1020

Merged
jycouet merged 31 commits intomainfrom
feat/community-add-ons
Apr 3, 2026
Merged

feat: community add-on experimental#1020
jycouet merged 31 commits intomainfrom
feat/community-add-ons

Conversation

@jycouet
Copy link
Copy Markdown
Contributor

@jycouet jycouet commented Mar 31, 2026

Closes #184

Description

  • Adding community add-ons in an experimental phase!
  • updated docs

Checklist

  • Update snapshots (if applicable)
  • Add a changeset (if applicable)
  • Allow maintainers to edit this PR
  • I care about what I'm doing, no matter the tool I use (Notepad, Sublime, VSCode, AI...)

@svelte-docs-bot
Copy link
Copy Markdown

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Mar 31, 2026

Open in StackBlitz

npx https://pkg.pr.new/svelte-migrate@1020
npx https://pkg.pr.new/sv@1020
npx https://pkg.pr.new/@sveltejs/sv-utils@1020

commit: c0500c0

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Mar 31, 2026

🦋 Changeset detected

Latest commit: c0500c0

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
sv Minor
@sveltejs/sv-utils Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@jycouet jycouet changed the title feat: community add-ons experimental feat: community add-on experimental Mar 31, 2026
@@ -2,5 +2,261 @@
title: [create your own]
Copy link
Copy Markdown
Member

@teemingc teemingc Mar 31, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love it

Image

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cc @sacrosanctic 🧡

jycouet and others added 4 commits March 31, 2026 20:53
Co-authored-by: Tee Ming <chewteeming01@gmail.com>
Co-authored-by: Tee Ming <chewteeming01@gmail.com>
Co-authored-by: Tee Ming <chewteeming01@gmail.com>
Co-authored-by: Tee Ming <chewteeming01@gmail.com>
jycouet and others added 4 commits March 31, 2026 21:03
Co-authored-by: Tee Ming <chewteeming01@gmail.com>
Co-authored-by: Tee Ming <chewteeming01@gmail.com>
Co-authored-by: Tee Ming <chewteeming01@gmail.com>
@sacrosanctic
Copy link
Copy Markdown
Contributor

Current

  • API
    • sv-utils

Proposal 1

  • API
    • defineAddon
    • defineAddonOptions
    • transforms
    • parse

Proposal 2

  • API
    • sv
    • sv-utils

@jycouet
Copy link
Copy Markdown
Contributor Author

jycouet commented Apr 1, 2026

Current

  • API
    • sv-utils

Proposal 1

  • API
    • defineAddon
    • defineAddonOptions
    • transforms
    • parse

Proposal 2

  • API
    • sv
    • sv-utils

I think that proposal 2 would be great 👍

@jycouet jycouet mentioned this pull request Apr 2, 2026
@benmccann
Copy link
Copy Markdown
Member

This looks really great!

I think the API that gives me the most pause is pnpmBuildDependency. I wonder about it for a few of reasons:

  • what if we want to edit other stuff in the pnpm-workspace.yaml file in the future?
  • what if pnpm changes the functionality in some way? the have not infrequent major releases
  • do we want an API that's specific to a single package manager?

As an alternative, could we use the existing file API with a YAML parser?

@jycouet
Copy link
Copy Markdown
Contributor Author

jycouet commented Apr 3, 2026

I think the API that gives me the most pause is pnpmBuildDependency. I wonder about it for a few of reasons:

  • what if we want to edit other stuff in the pnpm-workspace.yaml file in the future?
  • what if pnpm changes the functionality in some way? the have not infrequent major releases
  • do we want an API that's specific to a single package manager?

As an alternative, could we use the existing file API with a YAML parser?

Great comment, cool to have another eye on it 👍
You are 100% correct!!! It will be better with sv.file & yaml parser

I'll merge this for twis and will do in a follow-up PR

@jycouet jycouet merged commit c0e5831 into main Apr 3, 2026
8 checks passed
@jycouet jycouet deleted the feat/community-add-ons branch April 3, 2026 15:40
@github-actions github-actions bot mentioned this pull request Apr 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Community add-on support

4 participants