pulumi/sdk/nodejs/tests/runtime/langhost/cases
Fraser Waters 0d0144bca2
Stop using Get/SetRootResource in nodejs (#9680)
* Stop using Get/SetRootResource in nodejs

Just use globalThis to make the stack resource a global rather than a module variable. This ensures that even if we end up with multiple Pulumi modules they can all grab the stack object and read URN off it.

We'll keep calling SetRootResource so old modules SxS continue to pickup the stack URN, at some point (4.0 probably) we can clean all this up.

Note that we also need the stack resource to be global for stack transformations, the roundtripping of the URN via the engine didn't preserve those.

* Update CHANGELOG

* Try to resovle circular module imports

* Remove comment

* Readd comment, remove unneeed await

* Fix comments

* Get rid of getRootResource, just pass parent down explictly

* Fix stack parents

* Add stack transform test
2022-06-30 11:04:49 +01:00
..
000.empty Implement free variable calculations 2017-09-04 11:35:21 -07:00
001.one_resource Add auto-parenting 2017-10-15 04:38:26 -07:00
002.ten_resources Add auto-parenting 2017-10-15 04:38:26 -07:00
003.one_complex_resource Replace equal and deepEqual with strictEqual and deepStrictEqual (#5607) 2020-10-21 10:21:47 -07:00
004.ten_complex_resources Replace equal and deepEqual with strictEqual and deepStrictEqual (#5607) 2020-10-21 10:21:47 -07:00
005.resource_thens Replace equal and deepEqual with strictEqual and deepStrictEqual (#5607) 2020-10-21 10:21:47 -07:00
006.asset Add auto-parenting 2017-10-15 04:38:26 -07:00
007.promises_io Add auto-parenting 2017-10-15 04:38:26 -07:00
008.ten_depends_on_resources Permit dependsOn that are Outputs (of Outputs) (#2198) 2018-11-19 11:22:55 -05:00
009.invoke Replace equal and deepEqual with strictEqual and deepStrictEqual (#5607) 2020-10-21 10:21:47 -07:00
010.runtime_settings Replace equal and deepEqual with strictEqual and deepStrictEqual (#5607) 2020-10-21 10:21:47 -07:00
011.unhandled_error Add a test. 2017-12-13 17:30:43 -08:00
012.assets_archive Harden asset and archive deserialization. (#3042) 2019-08-06 16:32:05 -07:00
013.unhandled_promise_rejection Add a test. 2017-12-13 17:30:43 -08:00
014.read_resource Replace equal and deepEqual with strictEqual and deepStrictEqual (#5607) 2020-10-21 10:21:47 -07:00
015.runtime_sxs Stop using Get/SetRootResource in nodejs (#9680) 2022-06-30 11:04:49 +01:00
016.promise_leak Improve the promise leak experience (#1374) 2018-05-17 15:32:39 -07:00
017.parent_defaults Replace equal and deepEqual with strictEqual and deepStrictEqual (#5607) 2020-10-21 10:21:47 -07:00
018.logging Fix an issue with NodeJS host logging (#1819) 2018-08-24 16:50:09 -07:00
019.stack_exports Incorporate PR feedback 2018-09-02 12:15:58 -07:00
020.property_dependencies Implement more precise delete-before-replace semantics. (#2369) 2019-01-28 09:46:30 -08:00
021.parent_child_dependencies Update `@pulumi/pulumi` to version 0.17.0 (#2510) 2019-03-05 17:06:57 -08:00
022.parent_child_dependencies_2 Update `@pulumi/pulumi` to version 0.17.0 (#2510) 2019-03-05 17:06:57 -08:00
023.parent_child_dependencies_3 Update `@pulumi/pulumi` to version 0.17.0 (#2510) 2019-03-05 17:06:57 -08:00
024.parent_child_dependencies_4 Update `@pulumi/pulumi` to version 0.17.0 (#2510) 2019-03-05 17:06:57 -08:00
025.parent_child_dependencies_5 Update `@pulumi/pulumi` to version 0.17.0 (#2510) 2019-03-05 17:06:57 -08:00
026.parent_child_dependencies_6 Update `@pulumi/pulumi` to version 0.17.0 (#2510) 2019-03-05 17:06:57 -08:00
027.parent_child_dependencies_7 Update `@pulumi/pulumi` to version 0.17.0 (#2510) 2019-03-05 17:06:57 -08:00
028.parent_child_dependencies_8 Update `@pulumi/pulumi` to version 0.17.0 (#2510) 2019-03-05 17:06:57 -08:00
029.parent_child_dependencies_9 Update `@pulumi/pulumi` to version 0.17.0 (#2510) 2019-03-05 17:06:57 -08:00
030.import_resource Add support for importing existing resources. (#2893) 2019-07-12 11:12:01 -07:00
040.run_error Use result.Result in more places. (#2568) 2019-03-19 16:21:50 -07:00
041.component_opt_single_provider Replace equal and deepEqual with strictEqual and deepStrictEqual (#5607) 2020-10-21 10:21:47 -07:00
042.component_opt_providers_array Replace equal and deepEqual with strictEqual and deepStrictEqual (#5607) 2020-10-21 10:21:47 -07:00
043.depends_on_non_resource Ensure that the values in 'dependsOn' are actually Resources. (#2605) 2019-03-28 17:27:51 -07:00
044.versions Breaking changes due to Feature 2.0 work 2020-04-14 09:30:25 +01:00
045.ignore_changes Add an ignoreChanges resource option (#2657) 2019-04-22 13:54:48 -07:00
046.recursive_stack_exports Properly handle recursive outputs without penalizing non-recursive ones. (#3206) 2019-09-10 12:29:52 -07:00
047.exported_function Allow users to export a top-level function to serve as the entrypoint to their pulumi app. (#3321) 2019-12-09 11:28:20 -08:00
048.exported_promise_function Allow users to export a top-level function to serve as the entrypoint to their pulumi app. (#3321) 2019-12-09 11:28:20 -08:00
049.exported_async_function Allow users to export a top-level function to serve as the entrypoint to their pulumi app. (#3321) 2019-12-09 11:28:20 -08:00
050.resource_creation_in_function Allow users to export a top-level function to serve as the entrypoint to their pulumi app. (#3321) 2019-12-09 11:28:20 -08:00
051.resource_creation_in_function_with_result Allow users to export a top-level function to serve as the entrypoint to their pulumi app. (#3321) 2019-12-09 11:28:20 -08:00
052.resource_creation_in_async_function_with_result Allow users to export a top-level function to serve as the entrypoint to their pulumi app. (#3321) 2019-12-09 11:28:20 -08:00
060.provider_invokes Replace equal and deepEqual with strictEqual and deepStrictEqual (#5607) 2020-10-21 10:21:47 -07:00
061.provider_in_parent_invokes Replace equal and deepEqual with strictEqual and deepStrictEqual (#5607) 2020-10-21 10:21:47 -07:00
062.providerref_invokes Replace equal and deepEqual with strictEqual and deepStrictEqual (#5607) 2020-10-21 10:21:47 -07:00
063.providerref_in_parent_invokes Replace equal and deepEqual with strictEqual and deepStrictEqual (#5607) 2020-10-21 10:21:47 -07:00
064.async_components Replace equal and deepEqual with strictEqual and deepStrictEqual (#5607) 2020-10-21 10:21:47 -07:00
065.large_resource add tests for node and python 2020-04-23 11:16:36 -07:00
066.replace_on_changes Add `replaceOnChanges` resource option (#7226) 2021-07-01 13:32:08 -06:00
067.native_es_module Support native ES module for node sdk (#7764) 2021-12-29 19:22:01 -08:00
068.remote_component_providers [sdk/nodejs] Pickup provider as part of providers (#8923) 2022-02-04 12:38:34 +01:00