pulumi/sdk/nodejs/tests
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
..
automation Add `make tidy` command to apply `go mod tidy` on every go.mod (#8635) 2021-12-23 17:37:39 -05:00
mockpackage JavaScript fnSerialization match package.json exports (#8893) 2022-02-08 10:22:56 -08:00
runtime Stop using Get/SetRootResource in nodejs (#9680) 2022-06-30 11:04:49 +01:00
sxs_ts_test ci: fix sxs test 2022-03-06 14:45:26 -08:00
config.spec.ts Replace equal and deepEqual with strictEqual and deepStrictEqual (#5607) 2020-10-21 10:21:47 -07:00
constants.ts ci: improve x-plat testing on Windows 2022-03-06 14:45:26 -08:00
init.spec.ts Add license headers 2018-05-22 15:02:47 -07:00
iterable.spec.ts Replace equal and deepEqual with strictEqual and deepStrictEqual (#5607) 2020-10-21 10:21:47 -07:00
options.spec.ts [sdk/nodejs] Make provider and providers behavior consistent (#8819) 2022-01-25 20:11:41 +01:00
output.spec.ts Use ESlint instead of TSlint (#7719) 2021-08-10 11:31:59 -07:00
provider.spec.ts [sdk/nodejs] Unmarshal output values in component provider (#8205) 2021-11-15 11:22:44 -08:00
resource.spec.ts Tidy Nodejs SDK imports (#9658) 2022-05-30 09:31:28 +01:00
testmode.spec.ts Always read and write nodejs runtime options from/to the environment (#6076) 2021-01-26 14:59:32 -08:00
unwrap.spec.ts Use ESlint instead of TSlint (#7719) 2021-08-10 11:31:59 -07:00
util.ts Mark internal APIs `@internal` to filter from API docs (#3809) 2020-01-26 09:06:35 -08:00