-
Notifications
You must be signed in to change notification settings - Fork 2.5k
feat(schemas): separate public from internal schema #29041
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
Open
caugner
wants to merge
83
commits into
main
Choose a base branch
from
public-schema
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 78 commits
Commits
Show all changes
83 commits
Select commit
Hold shift + click to select a range
a59af28
feat(schemas): add public schema
caugner b94173e
chore(scripts/build): validate with public schema
caugner 6e38d63
fix(scripts/build): convert Date to string explicitly
caugner 5141563
fix(schemas/browsers): restore "maxProperties"
caugner 6aab32a
fix(schemas): remove version_last from internal schema
caugner 58bc695
fix(schemas): remove "mirror" from public schema
caugner 02512b2
chore(schemas): rename internal types that differ
caugner e87f7f8
chore(scripts/generate-types): use public schema
caugner e6ec3f1
chore(schemas): refine public schema
caugner 3625d24
ci(test): add diff-build job
caugner 9c40066
ci(test): add step names
caugner bd382c9
fix(scripts/generate-types): generate internal types as well
caugner 02fe4a2
chore(scripts/build): use new public type
caugner 212d293
chore: fix internal type usages
caugner 4869566
chore(vscode): use TS version from workspace
caugner b9028b7
chore(schemas): refine browsers schema
caugner 8048401
fix(generate-types): keep types.d.ts for internal types
caugner 46185f4
fix(schemas): remove source_file from internal schema
caugner b737787
chore(types): remove manual types
caugner 252bb46
fix(schemas): refine internal schema
caugner 02c1290
chore: fix internal schema usage
caugner 154e7fb
chore: fix ESLint errors
caugner fe10aa9
fixup! chore(schemas): refine public schema
caugner 2a320b4
fixup! chore: fix internal type usages
caugner 6d3341f
fixup! fixup! chore: fix internal type usages
caugner 5444400
Merge branch 'main' into public-schema
caugner bbffdde
chore(schemas): make SupportBlock partial
caugner 0133009
fix(schemas): replace patternProperties on root
caugner 6fce3da
fix(schemas): use intersection type
caugner eb86b1a
chore(schemas): prefer Record over index type
caugner 4c78d36
fixup! fix(generate-types): keep types.d.ts for internal types
caugner 613889f
refactor: rename types/{types => internal}.d.ts
caugner a78207a
chore(schemas): sync existing docs
caugner 57f2f8c
fixup! fix(schemas): refine internal schema
caugner 5bb0dc4
docs(schemas): describe public schema
caugner a64f7d6
docs(schemas): sync internal schema docs
caugner c43fb41
chore(scripts/generate-types): clean up old types
caugner fa492d8
refactor: revert named browsers export
caugner 2160412
chore(eslint): prefer @typescript-eslint/no-unused-vars
caugner 6ef2f5c
fix(lint/types): revert underscore on "unused var"
caugner 4c20fb8
chore(schemas): remove examples from type descriptions
caugner 8795524
fixup! refactor: revert named browsers export
caugner ed665b7
chore(schemas): remove duplicated information from description
caugner d9d323d
chore(schemas): revert BrowserName type
caugner 22e9dbd
chore(schemas): reflect draft-07 in `$schema` value
caugner a760f58
chore(schemas): make descriptions more concise
caugner 662ee59
fixup! chore(schemas): reflect draft-07 in `$schema` value
caugner 883d288
chore(schemas): add description/examples to meta block
caugner 30361cd
chore(schemas): prefer "subfeature" over "sub-feature"
caugner 24ccd78
chore(schemas): refine Browsers type description
caugner ea1b029
chore(schemas): prefer "feature flags" over "[user-toggleable] flags"
caugner d39e07e
chore(schemas): refine Browsers type descriptions
caugner b1bc417
chore(schemas): remove "This is automatically generated"
caugner dacc025
fixup! chore(schemas): prefer "feature flags" over "[user-toggleable]…
caugner 246c656
chore(schemas): refine `impl_url` description
caugner c80a51e
chore(schemas): remove errorMessage from public schema
caugner 549e023
chore(schemas): refine `partial_implementation` description
caugner 108d462
docs(schemas): sync docs with changes
caugner b7cccc5
refactor(lint/fixer): refine common-errors fix
caugner 93f7b14
chore(lint): remove unnecessary type cast
caugner dd6452b
fix(schemas): refine [Internal]Identifier tsType
caugner 662b144
chore(lint): replace any type
caugner fa35b21
fixup! chore(lint): remove unnecessary type cast
caugner dfc8889
Merge branch 'main' into public-schema
caugner 6833e1d
Merge branch 'main' into public-schema
caugner 1ba780e
chore(schemas): IE 6 omits ".0"
caugner 2f2b556
chore(schemas): fix webextensions tsType
caugner 467fd0e
fix(lint): revert accidental var rename
caugner fbd209e
fix(scripts): add missing await
caugner 2227be7
fix(schema): avoid internal type in public schema
caugner cd09fba
fix(lint): revert accidental rename in JSDoc
caugner 9193ced
chore(generate-internal-types): sync with generate-public-types
caugner 6ed2a4b
refacotr(scripts): merge generate-types scripts
caugner 3d9f3e5
fix(scripts/build): use CompatData, not InternalCompatData
caugner 353a592
fix(types): add missing imports
caugner 0aedae9
fix(schemas): avoid VersionValue in compat data
caugner a6deba1
Merge branch 'main' into public-schema
caugner d7059c7
chore(schemas): revert Identifier tsType
caugner 82165dd
chore(types): enable skipLibCheck
caugner 75c01e7
Merge branch 'main' into public-schema
caugner c433281
chore(build): add tsconfig with skipLibCheck = false
caugner ecbb9a8
Merge branch 'main' into public-schema
caugner 93c0289
chore(scripts/generate-types): check types with lib check
caugner File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,4 +11,5 @@ LICENSE | |
| /build/ | ||
| coverage/ | ||
| .features.json | ||
| types.d.ts | ||
| /types/internal.d.ts | ||
| /types/public.d.ts | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -31,5 +31,6 @@ | |
| ], | ||
| "url": "/schemas/browsers.schema.json" | ||
| } | ||
| ] | ||
| ], | ||
| "typescript.tsdk": "node_modules/typescript/lib" | ||
| } | ||
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
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this for?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This ensures that VSCode uses the TypeScript version referenced by
package.json, rather than using the latest TypeScript version. Specifically, the latest TypeScript version seems to report additional (unrelated) warnings/errors that I don't want to resolve in this PR.(It would make sense to move this to a separate PR.)