pulumi/sdk/nodejs/runtime
Justin Van Patten 1949b65072 Keep resource refs when invoking `pulumi:pulumi:getResource`
We used to always keep resource references when marshaling the results of `pulumi:pulumi:getResource`, but this regressed in #9323 to only keep resource if request's `acceptResources` flag was set. Unfortunately, that flag was not being set when calling `pulumi:pulumi:getResource` in the Go, Node.js, and Python SDKs (although, it was being set for .NET).

Two fixes:
1. Update the monitor to go back to always keeping resources when `pulumi:pulumi:getResource` is being invoked. This way, older SDKs that are not setting `acceptResources` will go back to the original behavior.
2. Update the SDKs to always set `acceptResources`, so that these newer versions of the SDKs will work with older engines that are checking `acceptResources`.

(2) will help us with EKS 1.0. We'll be able to update EKS to use a version of `@pulumi/pulumi` with the fix to set the `acceptResources` flag.
2022-11-16 11:27:24 -08:00
..
closure fix: Allows for parallel pulumi programs to run in the node runtime 2022-10-13 07:15:25 -04:00
asyncIterableUtil.ts Use ESlint instead of TSlint (#7719) 2021-08-10 11:31:59 -07:00
config.ts fix: Allows for parallel pulumi programs to run in the node runtime 2022-10-13 07:15:25 -04:00
debuggable.ts fix: Allows for parallel pulumi programs to run in the node runtime 2022-10-13 07:15:25 -04:00
index.ts [sdk/nodejs] Mark internal APIs `@internal` to filter from SDK docs 2022-09-20 11:54:06 -07:00
invoke.ts Tidy Nodejs SDK imports (#9658) 2022-05-30 09:31:28 +01:00
mocks.ts Support orgs in tests and update error text 2022-09-19 10:28:04 +01:00
resource.ts Keep resource refs when invoking `pulumi:pulumi:getResource` 2022-11-16 11:27:24 -08:00
rpc.ts Detect cycles in child resources in nodejs (#9683) 2022-05-30 19:37:15 +01:00
settings.ts Fix some lint issues 2022-11-04 13:02:32 +00:00
stack.ts fix: Allows for parallel pulumi programs to run in the node runtime 2022-10-13 07:15:25 -04:00
state.ts fix: Allows for parallel pulumi programs to run in the node runtime 2022-10-13 07:15:25 -04:00