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

Metadata format 3 #13464

Merged
merged 1 commit into from
Dec 14, 2016
Merged

Metadata format 3 #13464

merged 1 commit into from
Dec 14, 2016

Conversation

chuckjaz
Copy link
Contributor

What kind of change does this PR introduce? (check one with "x")

[x] Bugfix

What is the current behavior?

Various errors in the collection of version 2 format requires a version format change to fix.

What is the new behavior?

The updates the metadata format produced by the collector and required by the static reflector to version 3.

Does this PR introduce a breaking change? (check one with "x")

[ ] Yes
[x] No

Other information:

Version 1 is still supported and is auto-upgraded to format 3 by the CompilerHost in the compiler-cli.

const componentMetadata = metadata.metadata['MyComponent'];

// Get the first argument of the decorator call which is passed to @Component
expect(isClassMetadata(componentMetadata)).toBeTruthy();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe extract into a helper function?

@tbosch
Copy link
Contributor

tbosch commented Dec 14, 2016

Some collector tests are still failing...

This change retracts support for metadata version 2.

The collector used to produce version 2 metadata was incomplete
and can cause the AOT compiler to fail to resolve symbols or
produce other spurious errors.

All libraries compiled and published with 2.3.0 ngc will need
to be recompiled and updated with this change.
@chuckjaz chuckjaz added the action: merge The PR is ready for merge by the caretaker label Dec 14, 2016
@vicb vicb merged commit b6078f5 into angular:master Dec 14, 2016
vicb pushed a commit that referenced this pull request Dec 15, 2016
This change retracts support for metadata version 2.

The collector used to produce version 2 metadata was incomplete
and can cause the AOT compiler to fail to resolve symbols or
produce other spurious errors.

All libraries compiled and published with 2.3.0 ngc will need
to be recompiled and updated with this change.
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants