Skip to content

fix(deploy): remove direct workspace access #2643

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

Merged
merged 1 commit into from
Nov 11, 2020

Conversation

clydin
Copy link
Member

@clydin clydin commented Nov 10, 2020

Depending on the configuration and initialization of the builder runtime, there may not be a workspace file or the raw values within the workspace file may not represent the final values used by a builder. To support cases where inspection of builder target options is needed, the builder runtime provides a utility function (getTargetOptions) within the context object passed to each builder. This utility function is now used within the deploy builder to access builder target options. Also, as a result of these changes, usage of the experimental workspace API was removed. This experimental API is no longer present as of Angular v11.

@google-cla google-cla bot added the cla: yes label Nov 10, 2020
Depending on the configuration and initialization of the builder runtime, there may not be a workspace file or the raw values within the workspace file may not represent the final values used by a builder.  To support cases where inspection of builder target options is needed, the builder runtime provides a utility function (`getTargetOptions`) within the context object passed to each builder.  This utility function is now used within the deploy builder to access builder target options.  Also, as a result of these changes, usage of the experimental workspace API was removed.  This experimental API is no longer present as of Angular v11.
@jamesdaniels
Copy link
Member

jamesdaniels commented Nov 10, 2020

Thanks for this @clydin, do you think it's reasonable to try to have NG 9, 10 & 11 compatibility or should we bump our peer dep and cut a major ourselves?

@clydin
Copy link
Member Author

clydin commented Nov 10, 2020

These changes should be fine on all three so the minimum could technically stay within the scope of deploy.
However, I'm unsure as to the compatibility of the library code itself especially regarding Angular compiler compatibility across that many majors.

@jamesdaniels
Copy link
Member

Cool. Yeah we're good on compatibility across those majors in the library code, I'm planning a break coming up anyway as modular rewrite of the Firebase JS SDK is inbound. I'll merge these and add NG 11 peer in a minor for tomorrow.

Thanks again.

@jamesdaniels jamesdaniels added this to the 6.1 milestone Nov 10, 2020
@jamesdaniels jamesdaniels merged commit 7e1918a into angular:master Nov 11, 2020
@clydin clydin deleted the deploy-remove-direct-workspace branch November 11, 2020 05:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants