Skip to content

fix(deploy): remove direct workspace access - #2643

Merged
jamesdaniels merged 1 commit into
angular:masterfrom
clydin:deploy-remove-direct-workspace
Nov 11, 2020
Merged

jamesdaniels merged 1 commit into
angular:masterfrom
clydin:deploy-remove-direct-workspace

Conversation

@clydin

@clydin clydin commented Nov 10, 2020

Copy link
Copy Markdown
Member

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

jamesdaniels commented Nov 10, 2020 •

Copy link
Copy Markdown
Contributor

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

clydin commented Nov 10, 2020

Copy link
Copy Markdown
Member Author

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
Copy Markdown
Contributor

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