Repository navigation
feat: emit Custom Elements Manifest 2.1 - #345
Open
SisyphusZheng wants to merge 1 commit into
Open
SisyphusZheng wants to merge 1 commit into
SisyphusZheng wants to merge 1 commit into
Conversation
✅ Deploy Preview for custom-elements-manifest-analyzer ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
Aligns the analyzer's declared output version, schema type dependency, fixtures, and current documentation with Custom Elements Manifest 2.1.
The analyzer already emits the CEM 2.1
readonlyandcssStatesfields, but currently declares every generated manifest asschemaVersion: "1.0.0"and depends on the 1.0 schema types.Closes #344.
Changes
schemaVersion: "2.1.0"from the analyzer and browser bundle.custom-elements-manifestdependency and root documentation dependency to 2.1.0.readonlyvalues and thecssStatesstructure instead of treating Schema acceptance alone as complete conformance proof.Compatibility boundary
This PR verifies that the upgraded analyzer can read the tested CEM 1.0 dependency manifests and produce a CEM 2.1 result. It does not imply that consumers which only accept 1.0 will accept the new output. The
schemaVersionchange is intentionally documented as an observable contract change; the appropriate analyzer release level is left to the maintainers.Schema validation is used as positive migration coverage, not as the sole semantic guarantee.
webcomponents/custom-elements-manifest#138tracks an existing declaration-union /anyOfambiguity, so the 2.1-specific fields also have direct assertions.Verification
corepack yarn test— all workspaces passed.corepack yarn workspace @custom-elements-manifest/analyzer build:browser— passed.tsc packages/analyzer/index.d.ts --noEmit --skipLibCheck --moduleResolution node --module esnext --target es2020— passed.