pulumi/sdk/nodejs/tests/runtime/testdata/closure-tests/cases/151-Capture-config-created-...
Julien P dd1d8607ae
Make function serialization work on typescript 4 and 5 (#15761)
# Description

Builds on top of https://github.com/pulumi/pulumi/pull/15753

Fixes https://github.com/pulumi/pulumi/issues/15735

There are a couple breaking changes in the typescript API that we use in
`sdk/nodejs/runtime/closure/rewriteSuper.ts`. This PR adds a shim that
is used to bridge the differences and versions the snapshots where
needed.

This does not make typescript a peer dependency yet. Instead the tests
force a specific version to be used via [yarn
resolutions](https://classic.yarnpkg.com/lang/en/docs/selective-version-resolutions/).

## Checklist

- [x] I have run `make tidy` to update any new dependencies
- [x] I have run `make lint` to verify my code passes the lint check
  - [x] I have formatted my code using `gofumpt`

<!--- Please provide details if the checkbox below is to be left
unchecked. -->
- [x] I have added tests that prove my fix is effective or that my
feature works
<!--- 
User-facing changes require a CHANGELOG entry.
-->
- [x] I have run `make changelog` and committed the
`changelog/pending/<file>` documenting my change
<!--
If the change(s) in this PR is a modification of an existing call to the
Pulumi Cloud,
then the service should honor older versions of the CLI where this
change would not exist.
You must then bump the API version in
/pkg/backend/httpstate/client/api.go, as well as add
it to the service.
-->
- [ ] Yes, there are changes in this PR that warrants bumping the Pulumi
Cloud API version
<!-- @Pulumi employees: If yes, you must submit corresponding changes in
the service repo. -->
2024-03-27 10:03:57 +00:00
..
deploymentOnlyModule Reorganize closure tests to prepare for multiple typescript versions (#15753) 2024-03-25 13:19:17 +00:00
index.ts Reorganize closure tests to prepare for multiple typescript versions (#15753) 2024-03-25 13:19:17 +00:00
snapshot.txt Make function serialization work on typescript 4 and 5 (#15761) 2024-03-27 10:03:57 +00:00
snapshot.~3.8.3.txt Make function serialization work on typescript 4 and 5 (#15761) 2024-03-27 10:03:57 +00:00