sst 2.25.6 → 2.26.1
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 +3 -3
- package/bus.js +2 -2
- package/cache.js +2 -2
- package/cdk/deployments-wrapper.js +2 -2
- package/cli/commands/dev.js +6 -5
- package/cli/commands/plugins/kysely.js +2 -2
- package/cli/commands/plugins/pothos.js +2 -2
- package/cli/commands/plugins/warmer.js +2 -2
- package/cli/local/server.js +75 -26
- package/cli/spinner.js +2 -2
- package/constructs/App.js +4 -3
- package/constructs/Function.d.ts +2 -2
- package/constructs/Function.js +1 -1
- package/constructs/context.d.ts +2 -7
- package/constructs/context.js +26 -8
- package/context/context2.d.ts +16 -0
- package/context/context2.js +108 -0
- package/context/handler.js +3 -4
- package/credentials.d.ts +3 -10
- package/credentials.js +5 -5
- package/iot.js +3 -3
- package/logger.js +2 -2
- package/node/actor/index.d.ts +2 -2
- package/node/actor/index.js +3 -3
- package/node/api/index.js +7 -7
- package/node/auth/session.js +1 -1
- package/node/event-bus/index.js +0 -1
- package/node/future/auth/session.js +1 -1
- package/node/util/loader.js +4 -4
- package/package.json +20 -19
- package/project.d.ts +0 -5
- package/project.js +5 -5
- package/runtime/handlers/python.js +1 -3
- package/runtime/handlers.js +3 -3
- package/runtime/iot.js +2 -2
- package/runtime/server.js +3 -3
- package/runtime/workers.js +2 -2
- package/stacks/app-metadata.js +2 -3
- package/stacks/metadata.d.ts +1 -1
- package/stacks/metadata.js +2 -5
- package/support/bootstrap-metadata-function/index.mjs +41338 -45328
- package/support/bridge/bridge.mjs +55 -65
- package/support/custom-resources/index.mjs +90699 -90561
- package/support/event-bus-retrier/index.mjs +57 -27
- package/support/job-manager/index.mjs +22257 -7697
- package/support/rds-migrator/index.mjs +41 -17
- package/support/script-function/index.mjs +33731 -35450
- package/support/signing-function/index.mjs +578 -32
- package/support/ssr-warmer/index.mjs +26855 -26892
- package/util/lazy.d.ts +1 -0
- package/util/lazy.js +11 -0
- package/watcher.js +2 -2
package/util/lazy.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function lazy<T>(callback: () => T): () => T;
|
package/util/lazy.js
ADDED
package/watcher.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Context } from "./context/context.js";
|
|
2
1
|
import chokidar from "chokidar";
|
|
3
2
|
import { useBus } from "./bus.js";
|
|
4
3
|
import path from "path";
|
|
5
4
|
import { useProject } from "./project.js";
|
|
6
|
-
|
|
5
|
+
import { lazy } from "./util/lazy.js";
|
|
6
|
+
export const useWatcher = lazy(() => {
|
|
7
7
|
const project = useProject();
|
|
8
8
|
const bus = useBus();
|
|
9
9
|
const watcher = chokidar.watch([project.paths.root], {
|