-
Notifications
You must be signed in to change notification settings - Fork 2
Initial release checklist (1.0.0) #1
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
Comments
@43081j Sorry for the delay — was afk for ~two weeks, now back again. I've made you an owner of the org — thought that was already the case, sorry for that! My instinct is to have parse5-tooks re-export the existing |
no worries, everyone needs a break :D
This makes sense i think, so the consumer doesn't need to directly import the default tree adapter every time.
as in not all adapters would have the same methods? we'd have to add it to them all i think. maybe easier for now to leave those alone and keep these functions here... also cc @justinfagnani @rictic @daKmoR - you might be interested in this repo/issue as the aim here is to at least be a good replacement for the copies of dom5 you each have (lit, modernweb). some methods have changed, some signatures, etc, but it should support everything both repos need. |
@fb55 could you help me out getting parse5 org access in npm? so i can publish a pre-release of this and start preparing PRs to google & modernweb? |
@43081j Sent you an invite! |
awesome thank you :D |
Do you think this could be dual-published with CommonJS and standard modules before 1.0? I'm trying to use this in the context of a TS Server plugin, which is sync and CommonJ only, so it's much easier to consume CJS modules. |
It's possible I think. It's a shame to have to duplicate the published code, though I wonder if node will ship Otherwise maybe we just ship a dual package and drop it once the require stuff is widely available |
require(esm) was shipped with Node 23 |
Do you know if it'll get backported? I don't think we can restrict to If it won't soon enough, maybe we could survive with a dual package temporarily and just take the size hit. It's not a huge package so should still be small |
This is just a tracking issue for what needs doing before this is published publically:
is*
functions should be migrated into parse5 core (or exported if they already exist)Most of this will be about compat with google/mw repos as they're the primary users of dom5 these days. There are other consumers (incl myself) but i'd argue we shouldn't try maintain the old interfaces as there will be many unused functions google only ever made use of.
Possible gaps in parse5
I've had to create these internal functions:
isDocument
isDocumentFragment
isTemplateNode
isParentNode
isChildNode
I feel like most of these should really be part of the tree adapter interface, since thats where the others currently live (e.g.
isTextNode
,isElementNode
, etc).cc @fb55
also @fb55 i can't see the settings of this repo now that i moved it into parse5 org (to be able to make it public eventually). do you know if im just missing a permission? i also want to rename it to just
tools
i thinkalso would be nice to cc some people into here before it gets published (e.g. some of lit/mw teams) so maybe we need to make it public but just not publish it yet
The text was updated successfully, but these errors were encountered: