pulumi/sdk/nodejs/tests
Zaid Ajaj 05d789752b
[sdk] Implement deferred output for nodejs and python (#17793)
### Description

Addressing https://github.com/pulumi/pulumi/issues/17787

This PR implements the _deferred output_ construct for both the NodeJS
and python SDKs so that they can be used for generating programs from
terraform code that have circular references in component resources
(i.e. https://github.com/pulumi/pulumi/issues/13581)

I thought using a function that returns a tuple instead of a class makes
for a simpler implementation for both SDKs

API for nodejs:
```ts
const [bucketArn, resolveBucketArn] = pulumi.deferredOutput<string>();
const bucket = new aws.s3.Bucket("example", { });
resolveBucketArn(bucket.arn);
```
API for python:
```python
bucket_arn, resolve = pulumi.deferred_output()
bucket = aws.s3.Bucket("example")
resolve(bucket.arn)
```
2024-11-21 15:25:49 +00:00
..
automation always run multiple stacks concurrently test locally (#17502) 2024-10-07 21:15:17 +00:00
cmd/dynamic Allow accessing configuration in Node.js dynamic providers (#17697) 2024-11-07 14:34:11 +00:00
runtime set mock monitor in global store (#17769) 2024-11-21 09:39:37 +00:00
sxs_ts_test Replace Rome with Biome in the NodeJS SDK (#16456) 2024-06-24 11:14:56 +00:00
config.spec.ts Apply autoformat 2023-04-28 18:27:10 -04:00
constants.ts ci: improve x-plat testing on Windows 2022-03-06 14:45:26 -08:00
init.spec.ts Apply autoformat 2023-04-28 18:27:10 -04:00
iterable.spec.ts Apply autoformat 2023-04-28 18:27:10 -04:00
options.spec.ts Apply autoformat 2023-04-28 18:27:10 -04:00
output.spec.ts [sdk] Implement deferred output for nodejs and python (#17793) 2024-11-21 15:25:49 +00:00
provider.spec.ts Add google-protobuf types (#14422) 2023-10-27 09:55:44 +00:00
resource.spec.ts [sdk/nodejs] Fix provider for resource methods (#13796) 2023-08-30 14:49:53 +00:00
stackReference.spec.ts Fix TypeScript checking of Output maps of "any" values (#16959) 2024-08-15 19:09:21 +00:00
unwrap.spec.ts Apply autoformat 2023-04-28 18:27:10 -04:00
util.ts Apply autoformat 2023-04-28 18:27:10 -04:00