pulumi/pkg/codegen/nodejs
Julien cfd7ce00ef
[Node.js] Allow specifiying dependencies for output invokes (#17632)
Provider functions that take inputs as arguments, and return an output
(aka output invokes), now allow specifying a `dependsOn` option. This
allows programs to ensure that invokes are executed after things they
depend on, similar to the [`depdendsOn` resource
option](https://www.pulumi.com/docs/iac/concepts/options/dependson/).

This is based on https://github.com/pulumi/pulumi/pull/16560 which was
reverted in https://github.com/pulumi/pulumi/pull/16642. Unlike the
previous PR, this only adds the `dependsOn` option to output invokes
(those that return an output, and use SDK invokeOutput function
internally).

https://github.com/pulumi/pulumi/discussions/17710

Fixes https://github.com/pulumi/pulumi/issues/17748
2024-11-20 16:03:11 +00:00
..
gen_program_test Don't publish test code in `pkg/codegen` (#17517) 2024-10-09 11:09:54 +00:00
tstypes turn on the golangci-lint exhaustive linter (#15028) 2024-01-17 16:50:41 +00:00
doc.go Enable perfsprint linter (#14813) 2023-12-12 12:19:42 +00:00
doc_test.go sdk/go: Remove 'nolint' directives from package docs 2023-01-06 09:06:47 -08:00
gen.go [Node.js] Allow specifiying dependencies for output invokes (#17632) 2024-11-20 16:03:11 +00:00
gen_fileinfo.go [codegen/node] Implement support for lazy-loaded Node modules (#10538) 2022-09-01 18:42:44 -04:00
gen_intrinsics.go Update error handling (#8406) 2021-11-12 18:37:17 -08:00
gen_lazyloads.go pkg/codegen/nodejs: Prefer contract.Assertf over Assert 2023-03-01 13:22:32 -08:00
gen_lazyloads_test.go sdk/go: Remove 'nolint' directives from package docs 2023-01-06 09:06:47 -08:00
gen_program.go Add support for `DeletedWith` to `pulumi convert` (#12011) 2024-07-19 14:17:45 +00:00
gen_program_expressions.go [PCL] Support generating invokes options from PCL for invokes (#17696) 2024-11-11 13:01:24 +00:00
gen_program_lower.go Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
gen_program_test.go Don't publish test code in `pkg/codegen` (#17517) 2024-10-09 11:09:54 +00:00
gen_program_utils.go Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
gen_test.go Don't publish test code in `pkg/codegen` (#17517) 2024-10-09 11:09:54 +00:00
importer.go Remove 'pluginVersion' and 'pluginName' from nodejs schema options. 2023-08-08 12:19:06 +01:00
utilities.go pkg/codegen/nodejs: Prefer contract.Assertf over Assert 2023-03-01 13:22:32 -08:00
utilities.ts Support returning plain values from methods (#13592) 2023-11-18 06:02:06 +00:00
utilities_test.go Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00