pulumi/sdk/nodejs/provider
Mikhail Shilkov 121eb899e4
[sdk/nodejs] Add getSchema to Provider interface (#17950)
Originally implemented in https://github.com/pulumi/pulumi/pull/6892,
node's Provider interface has a `schema` property of type string. As
such, it's required to be set unconditionally at provider class
instantiation, not loaded dynamically on demand. This puts an unneeded
burden on provider startup to load or calculate the entire schema even
though it may never be needed.

This PR adds a `getSchema?: () => Promise<string>;` method in line with
gRPC interface functionality. `schema` is still present for backwards
compatibility. The server will use `schema` if it's defined, or
`getSchema` if not.
2024-12-09 12:58:40 +00:00
..
index.ts Initial support for remote component construction. (#5280) 2020-09-07 19:33:55 -07:00
internals.ts Improve TypeDocs for `sdk/nodejs` (#16622) 2024-07-15 09:05:28 +00:00
provider.ts [sdk/nodejs] Add getSchema to Provider interface (#17950) 2024-12-09 12:58:40 +00:00
server.ts [sdk/nodejs] Add getSchema to Provider interface (#17950) 2024-12-09 12:58:40 +00:00