pulumi/sdk/nodejs/package.json
Pat Gavlin f848090479 Return all computed inputs from Provider.Check.
As documented in issue #616, the inputs/defaults/outputs model we have
today has fundamental problems. The crux of the issue is that our
current design requires that defaults present in the old state of a
resource are applied to the new inputs for that resource.
Unfortunately, it is not possible for the engine to decide which
defaults remain applicable and which do not; only the provider has that
knowledge.

These changes take a more tactical approach to resolving this issue than
that originally proposed in #616 that avoids breaking compatibility with
existing checkpoints. Rather than treating the Pulumi inputs as the
provider input properties for a resource, these inputs are first
translated by `Check`. In order to accommodate provider defaults that
were chosen for the old resource but should not change for the new,
`Check` now takes the old provider inputs as well as the new Pulumi
inputs. Rather than the Pulumi inputs and provider defaults, the
provider inputs returned by `Check` are recorded in the checkpoint file.

Put simply, these changes remove defaults as a first-class concept
(except inasmuch as is required to retain the ability to read old
checkpoint files) and move the responsibilty for manging and
merging defaults into the provider that supplies them.

Fixes #616.
2017-12-03 09:33:16 -08:00

24 lines
649 B
JSON

{
"name": "pulumi",
"version": "${VERSION}",
"description": "Pulumi's Node.js SDK",
"repository": "https://github.com/pulumi/pulumi/sdk/nodejs",
"devDependencies": {
"@types/minimist": "^1.2.0",
"@types/mocha": "^2.2.42",
"@types/node": "^8.0.25",
"istanbul": "^0.4.5",
"mocha": "^3.5.0",
"node-gyp": "^3.6.2",
"tslint": "^5.7.0"
},
"dependencies": {
"google-protobuf": "^3.5.0",
"grpc": "^1.6.0",
"minimist": "^1.2.0",
"require-from-string": "^2.0.1",
"source-map-support": "^0.4.16",
"typescript": "^2.5.2"
}
}