pulumi/sdk/nodejs/tests/runtime
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
..
deploymentOnlyModule Use ESlint instead of TSlint (#7719) 2021-08-10 11:31:59 -07:00
langhost Stop using Get/SetRootResource in nodejs (#9680) 2022-06-30 11:04:49 +01:00
asyncIterableUtil.spec.ts Replace equal and deepEqual with strictEqual and deepStrictEqual (#5607) 2020-10-21 10:21:47 -07:00
closureLoader.spec.ts Use ESlint instead of TSlint (#7719) 2021-08-10 11:31:59 -07:00
jsClosureCases_8.js Use ESlint instead of TSlint (#7719) 2021-08-10 11:31:59 -07:00
jsClosureCases_10_4.js Use ESlint instead of TSlint (#7719) 2021-08-10 11:31:59 -07:00
package.spec.ts JavaScript fnSerialization match package.json exports (#8893) 2022-02-08 10:22:56 -08:00
props.spec.ts Enable output values by default (#8014) 2021-09-24 08:57:04 -07:00
registrations.spec.ts [sdk/nodejs] Skip re-registrations of same package+version (#6387) 2021-02-20 10:06:32 +11:00
settings.spec.ts Enable nodejs dynamic provider caching by default on program side (#6704) 2021-04-14 19:32:18 +01:00
tsClosureCases.ts ci: improve x-plat testing on Windows 2022-03-06 14:45:26 -08:00