Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to automatically forward all attributes to component props #35

Merged
merged 12 commits into from
Dec 7, 2023

Conversation

patricknelson
Copy link
Owner

@patricknelson patricknelson commented Dec 5, 2023

Resolve issue #34 for v1 (as a transitional step to v2) that is backward compatible in a non-breaking way to the existing v1 API.

Adds ability to automatically forward all attributes to component props

  • Update docs and examples.
  • Update/rearrange tickets; set current to v1 and create a new v2 milestone to remove/deprecate existing attributes functionality (not compat w/ Svelte 4's customElements API)
  • Finish building out functionality
  • Setup unit tests
  • Update hello-world demo to reflect latest version (or move to direct ../../ inclusion instead 🤔) (chose to just point to latest tag and not use package-lock.json, see ae0501f already in main)
  • Merge, bump, tag and publish

Copy link

vercel bot commented Dec 5, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
svelte-retag ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 6, 2023 11:32pm

…ributes" option, allowing ability to forward all attributes in a v1 compatible fashion.
…and experimental "autoDefine()" function (due to large number of components). Undocumented for a reason... please do not use in production! 😅
…onverting to using querySelector instead of the old original naive HTML comparison tests.
…as expected even if element is disconnected from DOM and reconnected again later.
@patricknelson
Copy link
Owner Author

Done but gonna let it simmer over night. 🥘

index.js Outdated Show resolved Hide resolved
@patricknelson patricknelson merged commit a00f926 into main Dec 7, 2023
3 checks passed
@patricknelson patricknelson deleted the issue-34-auto-forward-attribs branch December 7, 2023 00:06
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.

Add ability to automatically forward all attributes to props
1 participant