Skip to content
This repository has been archived by the owner on Dec 1, 2024. It is now read-only.

Commit

Permalink
Update schema for 4.82
Browse files Browse the repository at this point in the history
Should be backwards compatible
  • Loading branch information
fredemmott committed Nov 3, 2020
1 parent 45e5d21 commit 852924e
Show file tree
Hide file tree
Showing 9 changed files with 202 additions and 14 deletions.
5 changes: 4 additions & 1 deletion codegen/inferred_relationships.hack

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion codegen/node_from_json.hack

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 11 additions & 1 deletion codegen/schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

153 changes: 153 additions & 0 deletions codegen/syntax/EnumAtomExpression.hack

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions codegen/syntax/VectorTypeSpecifier.hack

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion codegen/token_from_data.hack

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions codegen/tokens/HashToken.hack

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions codegen/version.hack

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/__Private/is_compatible_schema_version.hack
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ use const Facebook\HHAST\SCHEMA_VERSION;
*/
function is_compatible_schema_version(string $other_version): bool {
invariant(
SCHEMA_VERSION === '2020-10-15-0001',
SCHEMA_VERSION === '2020-10-29-0001',
'%s needs updating',
__FILE__,
);
Expand All @@ -32,10 +32,10 @@ function is_compatible_schema_version(string $other_version): bool {
// Return true if $other_version is a subset of SCHEMA_VERSION

switch ($other_version) {
/*
// preceding versions:
case 'version-number': // missing ...
case '2020-10-15-0001':
return true;
/*
// succeeding versions:
case 'version-number': // missing ...
return true;
Expand Down

0 comments on commit 852924e

Please sign in to comment.