sst 2.49.0 → 2.49.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bootstrap.js CHANGED
@@ -21,7 +21,7 @@ const SST_STACK_NAME = "SSTBootstrap";
21
21
  const SST_STACK_DESCRIPTION = "This stack includes resources needed to deploy SST apps into this environment";
22
22
  const OUTPUT_VERSION = "Version";
23
23
  const OUTPUT_BUCKET = "BucketName";
24
- const LATEST_VERSION = "7.3";
24
+ const LATEST_VERSION = "7.4";
25
25
  const __dirname = url.fileURLToPath(new URL(".", import.meta.url));
26
26
  export const useBootstrap = lazy(async () => {
27
27
  Logger.debug("Initializing bootstrap context");
@@ -14,7 +14,7 @@ export const update = (program) => program.command("update [version]", "Update y
14
14
  try {
15
15
  const project = useProject();
16
16
  const files = await findAllPackageJson(project.paths.root);
17
- const metadata = await fetch(`https://registry.npmjs.org/sst/${args.version || "latest"}`).then((resp) => resp.json());
17
+ const metadata = await fetch(`https://registry.npmjs.org/sst/${args.version || "two"}`).then((resp) => resp.json());
18
18
  const allChanges = new Map();
19
19
  const allOldPackages = new Map();
20
20
  // Update all package.json files
package/credentials.js CHANGED
@@ -12,7 +12,7 @@ export const useAWSCredentialsProvider = lazy(() => {
12
12
  const project = useProject();
13
13
  Logger.debug("Using AWS profile", project.config.profile);
14
14
  const provider = fromNodeProviderChain({
15
- clientConfig: { region: project.config.region },
15
+ parentClientConfig: { region: project.config.region },
16
16
  profile: project.config.profile,
17
17
  roleArn: project.config.role,
18
18
  mfaCodeProvider: async (serialArn) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "sideEffects": false,
3
3
  "name": "sst",
4
- "version": "2.49.0",
4
+ "version": "2.49.3",
5
5
  "bin": {
6
6
  "sst": "cli/sst.js"
7
7
  },
package/package.json.bak CHANGED
@@ -5,7 +5,7 @@
5
5
  },
6
6
  "sideEffects": false,
7
7
  "name": "sst",
8
- "version": "2.49.0",
8
+ "version": "2.49.3",
9
9
  "bin": {
10
10
  "sst": "cli/sst.js"
11
11
  },
package/stacks/synth.js CHANGED
@@ -12,6 +12,8 @@ export async function synth(opts) {
12
12
  const cxapi = await import("@aws-cdk/cx-api");
13
13
  const cdkToolkitUrl = await import.meta.resolve("@aws-cdk/toolkit-lib");
14
14
  const cdkToolkitPath = new URL(cdkToolkitUrl).pathname;
15
+ const { IoHelper } = await import(path.resolve(cdkToolkitPath, "..", "api", "io", "private", "io-helper.js"));
16
+ const { PluginHost } = await import(path.resolve(cdkToolkitPath, "..", "api", "plugin", "plugin.js"));
15
17
  const { provideContextValues } = await import(path.resolve(cdkToolkitPath, "..", "context-providers", "index.js"));
16
18
  const project = useProject();
17
19
  const cwd = process.cwd();
@@ -67,8 +69,14 @@ export async function synth(opts) {
67
69
  throw new VisibleError(formatErrorMessage(next.join("")));
68
70
  Logger.debug("Looking up context for:", next, "Previous:", previous);
69
71
  previous = new Set(next);
70
- await provideContextValues(missing, cfg.context, provider);
71
- if (cfg.context.keys.length) {
72
+ const updates = await provideContextValues(missing, provider, new PluginHost(), IoHelper.fromActionAwareIoHost({
73
+ notify: (msg) => { },
74
+ requestResponse: (msg) => { },
75
+ }));
76
+ if (Object.keys(updates).length) {
77
+ for (const [key, value] of Object.entries(updates)) {
78
+ cfg.context.set(key, value);
79
+ }
72
80
  await cfg.saveContext();
73
81
  }
74
82
  continue;