@encore.dev/sdk 2.0.0-beta.15 → 2.0.0-beta.16
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/README.md +111 -101
- package/app_meta.ts +56 -54
- package/config/config.ts +60 -57
- package/config/secrets.ts +45 -52
- package/config/value.ts +23 -26
- package/cron/mod.ts +28 -29
- package/dist/app_meta.d.ts +52 -50
- package/dist/app_meta.d.ts.map +1 -1
- package/dist/app_meta.js +2 -2
- package/dist/app_meta.js.map +1 -1
- package/dist/config/config.d.ts +58 -55
- package/dist/config/config.d.ts.map +1 -1
- package/dist/config/config.js +8 -9
- package/dist/config/config.js.map +1 -1
- package/dist/config/secrets.d.ts +45 -52
- package/dist/config/secrets.d.ts.map +1 -1
- package/dist/config/secrets.js +8 -9
- package/dist/config/secrets.js.map +1 -1
- package/dist/config/value.d.ts +20 -23
- package/dist/config/value.d.ts.map +1 -1
- package/dist/config/value.js +20 -23
- package/dist/config/value.js.map +1 -1
- package/dist/cron/mod.d.ts +26 -27
- package/dist/cron/mod.d.ts.map +1 -1
- package/dist/cron/mod.js +13 -14
- package/dist/cron/mod.js.map +1 -1
- package/dist/frontends/mod.d.ts +20 -19
- package/dist/frontends/mod.d.ts.map +1 -1
- package/dist/frontends/mod.js +20 -19
- package/dist/frontends/mod.js.map +1 -1
- package/dist/gateway/errors.d.ts +28 -30
- package/dist/gateway/errors.d.ts.map +1 -1
- package/dist/gateway/errors.js +29 -31
- package/dist/gateway/errors.js.map +1 -1
- package/dist/gateway/match.d.ts +54 -54
- package/dist/gateway/match.d.ts.map +1 -1
- package/dist/gateway/match.js +56 -56
- package/dist/gateway/match.js.map +1 -1
- package/dist/gateway/middleware.d.ts +62 -64
- package/dist/gateway/middleware.d.ts.map +1 -1
- package/dist/gateway/middleware.js +1 -1
- package/dist/gateway/middleware.js.map +1 -1
- package/dist/gateway/mod.d.ts +64 -67
- package/dist/gateway/mod.d.ts.map +1 -1
- package/dist/gateway/mod.js +72 -76
- package/dist/gateway/mod.js.map +1 -1
- package/dist/gateway/request.d.ts +138 -134
- package/dist/gateway/request.d.ts.map +1 -1
- package/dist/gateway/request.js +117 -108
- package/dist/gateway/request.js.map +1 -1
- package/dist/gateway/serve.d.ts +29 -34
- package/dist/gateway/serve.d.ts.map +1 -1
- package/dist/gateway/serve.js +51 -56
- package/dist/gateway/serve.js.map +1 -1
- package/dist/gateways/mod.d.ts +23 -21
- package/dist/gateways/mod.d.ts.map +1 -1
- package/dist/gateways/mod.js +25 -23
- package/dist/gateways/mod.js.map +1 -1
- package/dist/internal/runtime/napi/napi.cjs +1 -1
- package/dist/internal/runtime/napi/napi.d.cts +10 -3
- package/dist/internal/runtime/shutdown.d.ts +75 -57
- package/dist/internal/runtime/shutdown.d.ts.map +1 -1
- package/dist/internal/runtime/shutdown.js +88 -84
- package/dist/internal/runtime/shutdown.js.map +1 -1
- package/dist/log/logger.d.ts +43 -37
- package/dist/log/logger.d.ts.map +1 -1
- package/dist/log/logger.js +26 -25
- package/dist/log/logger.js.map +1 -1
- package/dist/metrics/mod.d.ts +133 -114
- package/dist/metrics/mod.d.ts.map +1 -1
- package/dist/metrics/mod.js +109 -101
- package/dist/metrics/mod.js.map +1 -1
- package/dist/otel.d.ts +6 -3
- package/dist/otel.d.ts.map +1 -1
- package/dist/otel.js +6 -3
- package/dist/otel.js.map +1 -1
- package/dist/pubsub/subscription.d.ts +88 -116
- package/dist/pubsub/subscription.d.ts.map +1 -1
- package/dist/pubsub/subscription.js +14 -17
- package/dist/pubsub/subscription.js.map +1 -1
- package/dist/pubsub/topic.d.ts +86 -113
- package/dist/pubsub/topic.d.ts.map +1 -1
- package/dist/pubsub/topic.js +68 -82
- package/dist/pubsub/topic.js.map +1 -1
- package/dist/reqctx/mod.d.ts +83 -86
- package/dist/reqctx/mod.d.ts.map +1 -1
- package/dist/reqctx/mod.js +39 -41
- package/dist/reqctx/mod.js.map +1 -1
- package/dist/services/index.d.ts +76 -75
- package/dist/services/index.d.ts.map +1 -1
- package/dist/services/index.js +73 -71
- package/dist/services/index.js.map +1 -1
- package/dist/shutdown/mod.d.ts +26 -25
- package/dist/shutdown/mod.d.ts.map +1 -1
- package/dist/shutdown/mod.js +26 -25
- package/dist/shutdown/mod.js.map +1 -1
- package/dist/storage/clickhouse/database.d.ts +113 -115
- package/dist/storage/clickhouse/database.d.ts.map +1 -1
- package/dist/storage/clickhouse/database.js +65 -79
- package/dist/storage/clickhouse/database.js.map +1 -1
- package/dist/storage/clickhouse/errors.d.ts +25 -26
- package/dist/storage/clickhouse/errors.d.ts.map +1 -1
- package/dist/storage/clickhouse/errors.js +15 -17
- package/dist/storage/clickhouse/errors.js.map +1 -1
- package/dist/storage/clickhouse/mod.d.ts +10 -10
- package/dist/storage/clickhouse/mod.js +10 -10
- package/dist/storage/objects/bucket.d.ts +196 -225
- package/dist/storage/objects/bucket.d.ts.map +1 -1
- package/dist/storage/objects/bucket.js +71 -84
- package/dist/storage/objects/bucket.js.map +1 -1
- package/dist/storage/objects/error.d.ts +4 -4
- package/dist/storage/objects/error.js +4 -4
- package/dist/storage/postgres/database.d.ts +124 -149
- package/dist/storage/postgres/database.d.ts.map +1 -1
- package/dist/storage/postgres/database.js +98 -135
- package/dist/storage/postgres/database.js.map +1 -1
- package/dist/storage/postgres/errors.d.ts +42 -48
- package/dist/storage/postgres/errors.d.ts.map +1 -1
- package/dist/storage/postgres/errors.js +44 -51
- package/dist/storage/postgres/errors.js.map +1 -1
- package/dist/storage/postgres/interval.d.ts +19 -19
- package/dist/storage/postgres/interval.d.ts.map +1 -1
- package/dist/storage/postgres/interval.js +21 -21
- package/dist/storage/postgres/interval.js.map +1 -1
- package/dist/storage/redis/bitfield.d.ts +48 -23
- package/dist/storage/redis/bitfield.d.ts.map +1 -1
- package/dist/storage/redis/bitfield.js +38 -19
- package/dist/storage/redis/bitfield.js.map +1 -1
- package/dist/storage/redis/command.d.ts +16 -12
- package/dist/storage/redis/command.d.ts.map +1 -1
- package/dist/storage/redis/command.js +16 -12
- package/dist/storage/redis/command.js.map +1 -1
- package/dist/storage/redis/commands.d.ts +99 -100
- package/dist/storage/redis/commands.d.ts.map +1 -1
- package/dist/storage/redis/commands.js +84 -85
- package/dist/storage/redis/commands.js.map +1 -1
- package/dist/storage/redis/database.d.ts +138 -122
- package/dist/storage/redis/database.d.ts.map +1 -1
- package/dist/storage/redis/database.js +120 -101
- package/dist/storage/redis/database.js.map +1 -1
- package/dist/storage/redis/mod.d.ts +52 -48
- package/dist/storage/redis/mod.d.ts.map +1 -1
- package/dist/storage/redis/mod.js +52 -48
- package/dist/storage/redis/mod.js.map +1 -1
- package/dist/storage/redis/options.d.ts +26 -24
- package/dist/storage/redis/options.d.ts.map +1 -1
- package/dist/storage/redis/options.js.map +1 -1
- package/dist/storage/redis/pubsub.d.ts +16 -16
- package/dist/storage/redis/pubsub.d.ts.map +1 -1
- package/dist/storage/redis/pubsub.js +14 -14
- package/dist/storage/redis/pubsub.js.map +1 -1
- package/dist/storage/redis/reply.d.ts +80 -72
- package/dist/storage/redis/reply.d.ts.map +1 -1
- package/dist/storage/redis/reply.js +53 -46
- package/dist/storage/redis/reply.js.map +1 -1
- package/dist/storage/redis/scan.d.ts +4 -4
- package/dist/storage/redis/scan.d.ts.map +1 -1
- package/dist/storage/redis/scan.js +6 -6
- package/dist/storage/redis/scan.js.map +1 -1
- package/dist/storage/redis/script.d.ts +28 -21
- package/dist/storage/redis/script.d.ts.map +1 -1
- package/dist/storage/redis/script.js +29 -22
- package/dist/storage/redis/script.js.map +1 -1
- package/dist/storage/redis/target.d.ts +17 -1
- package/dist/storage/redis/target.d.ts.map +1 -1
- package/dist/storage/redis/target.js +30 -1
- package/dist/storage/redis/target.js.map +1 -1
- package/dist/storage/redis/wire.d.ts +6 -6
- package/dist/storage/redis/wire.d.ts.map +1 -1
- package/dist/storage/redis/wire.js +6 -6
- package/dist/storage/redis/wire.js.map +1 -1
- package/dist/testing/mod.d.ts +83 -88
- package/dist/testing/mod.d.ts.map +1 -1
- package/dist/testing/mod.js +75 -81
- package/dist/testing/mod.js.map +1 -1
- package/dist/testing/playwright.d.ts +28 -32
- package/dist/testing/playwright.d.ts.map +1 -1
- package/dist/testing/playwright.js +22 -27
- package/dist/testing/playwright.js.map +1 -1
- package/dist/testing/puppeteer.d.ts +11 -12
- package/dist/testing/puppeteer.d.ts.map +1 -1
- package/dist/testing/puppeteer.js +17 -18
- package/dist/testing/puppeteer.js.map +1 -1
- package/dist/testing/system.d.ts +72 -90
- package/dist/testing/system.d.ts.map +1 -1
- package/dist/testing/system.js +90 -107
- package/dist/testing/system.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/frontends/mod.test.ts +6 -2
- package/frontends/mod.ts +20 -19
- package/gateway/errors.ts +30 -32
- package/gateway/match.ts +61 -57
- package/gateway/middleware.ts +62 -64
- package/gateway/mod.ts +73 -76
- package/gateway/request.ts +143 -140
- package/gateway/serve.ts +58 -63
- package/gateways/mod.ts +25 -23
- package/internal/runtime/napi/napi.cjs +1 -1
- package/internal/runtime/napi/napi.d.cts +10 -3
- package/internal/runtime/shutdown.ts +113 -101
- package/log/logger.test.ts +8 -0
- package/log/logger.ts +48 -45
- package/metrics/mod.ts +138 -122
- package/otel.ts +6 -3
- package/package.json +1 -1
- package/pubsub/subscription.ts +93 -123
- package/pubsub/topic.ts +96 -130
- package/reqctx/mod.ts +83 -86
- package/services/index.ts +78 -78
- package/shutdown/mod.ts +26 -25
- package/storage/clickhouse/database.ts +115 -129
- package/storage/clickhouse/errors.ts +27 -29
- package/storage/clickhouse/mod.ts +10 -10
- package/storage/objects/bucket.ts +209 -239
- package/storage/objects/error.ts +4 -4
- package/storage/postgres/database.ts +131 -164
- package/storage/postgres/errors.ts +45 -52
- package/storage/postgres/interval.ts +21 -21
- package/storage/redis/bitfield.ts +51 -26
- package/storage/redis/command.ts +16 -12
- package/storage/redis/commands.ts +99 -100
- package/storage/redis/database.ts +145 -123
- package/storage/redis/mod.ts +52 -48
- package/storage/redis/options.ts +26 -24
- package/storage/redis/pubsub.ts +14 -14
- package/storage/redis/redis.test.ts +17 -2
- package/storage/redis/reply.ts +85 -77
- package/storage/redis/scan.ts +6 -6
- package/storage/redis/script.ts +29 -22
- package/storage/redis/target.ts +34 -1
- package/storage/redis/wire.ts +8 -8
- package/testing/mod.ts +99 -105
- package/testing/playwright.ts +32 -37
- package/testing/puppeteer.ts +22 -23
- package/testing/system.ts +117 -133
package/dist/app_meta.d.ts
CHANGED
|
@@ -1,38 +1,39 @@
|
|
|
1
1
|
/** Describes the running Encore application. */
|
|
2
2
|
export interface AppMeta {
|
|
3
3
|
/**
|
|
4
|
-
* The Encore application ID. If the application is not linked to the Encore
|
|
5
|
-
*
|
|
4
|
+
* The Encore application ID. If the application is not linked to the Encore
|
|
5
|
+
* platform, this is an empty string. To link the application, run
|
|
6
|
+
* `encore cloud link` in the root directory of your Encore app.
|
|
6
7
|
*/
|
|
7
8
|
appId: string;
|
|
8
9
|
/**
|
|
9
|
-
* The Encore application slug — the human-readable identifier shown in the
|
|
10
|
-
* Cloud dashboard and used by the CLI. If the application is not
|
|
11
|
-
* Encore platform this
|
|
10
|
+
* The Encore application slug — the human-readable identifier shown in the
|
|
11
|
+
* Encore Cloud dashboard and used by the CLI. If the application is not
|
|
12
|
+
* linked to the Encore platform, this is an empty string.
|
|
12
13
|
*
|
|
13
|
-
* Distinct from `appId`: the
|
|
14
|
-
* be renamed. Locally
|
|
14
|
+
* Distinct from `appId`: the ID is opaque and stable, whereas the slug is
|
|
15
|
+
* human-readable and may be renamed. Locally, both have the same value.
|
|
15
16
|
*/
|
|
16
17
|
appSlug: string;
|
|
17
18
|
/**
|
|
18
|
-
* The API gateways
|
|
19
|
-
* gateway name: those its code looks up the URL of, and the one it hosts.
|
|
19
|
+
* The API gateways visible to this service, keyed by gateway name.
|
|
20
20
|
*
|
|
21
|
-
*
|
|
22
|
-
* the API — look up the gateway you
|
|
23
|
-
*
|
|
24
|
-
* `@encore.dev/sdk/gateways`) and
|
|
25
|
-
*
|
|
21
|
+
* Because an application can declare multiple gateways, there is no single
|
|
22
|
+
* base URL for the API — look up the gateway you want by name. A service's
|
|
23
|
+
* processes (including its workers) receive only the gateways referenced by
|
|
24
|
+
* its code (`url("api")` from `@encore.dev/sdk/gateways`) and any gateway
|
|
25
|
+
* hosted by the service itself. When no gateways are configured (such as
|
|
26
|
+
* under `encore test`), this is an empty object.
|
|
26
27
|
*/
|
|
27
28
|
gateways: Record<string, GatewayMeta>;
|
|
28
29
|
/**
|
|
29
|
-
* The frontends
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
30
|
+
* The frontends visible to this service, keyed by frontend name. Includes
|
|
31
|
+
* frontends referenced by this service's code (`url("web")` from
|
|
32
|
+
* `@encore.dev/sdk/frontends`) and any frontend hosted by the service itself.
|
|
33
|
+
* Frontends with no configured origins in this environment are omitted.
|
|
33
34
|
*/
|
|
34
35
|
frontends: Record<string, FrontendMeta>;
|
|
35
|
-
/** Information about the environment the
|
|
36
|
+
/** Information about the environment the application is running in. */
|
|
36
37
|
environment: EnvironmentMeta;
|
|
37
38
|
/** Information about the build. */
|
|
38
39
|
build: BuildMeta;
|
|
@@ -41,86 +42,87 @@ export interface AppMeta {
|
|
|
41
42
|
}
|
|
42
43
|
/** Describes an API gateway serving the application. */
|
|
43
44
|
export interface GatewayMeta {
|
|
44
|
-
/** The name
|
|
45
|
+
/** The gateway name as declared by the application. */
|
|
45
46
|
name: string;
|
|
46
47
|
/**
|
|
47
|
-
* The URL
|
|
48
|
-
*
|
|
49
|
-
*
|
|
48
|
+
* The primary URL at which this gateway is reached (the first entry in
|
|
49
|
+
* `origins`). Empty when no origins are configured for the gateway in this
|
|
50
|
+
* environment.
|
|
50
51
|
*/
|
|
51
52
|
url: string;
|
|
52
53
|
/**
|
|
53
|
-
*
|
|
54
|
-
* (`scheme://host[:port]`)
|
|
55
|
-
* be
|
|
56
|
-
*
|
|
54
|
+
* All origins at which the gateway is reached in this environment
|
|
55
|
+
* (`scheme://host[:port]`). The first entry is the primary `url`. Subsequent
|
|
56
|
+
* entries may be wildcard patterns (such as `https://*.example.com`) or `*`,
|
|
57
|
+
* which makes this gateway handle requests that no other origin matches.
|
|
57
58
|
*/
|
|
58
59
|
origins: string[];
|
|
59
60
|
}
|
|
60
|
-
/** Describes a frontend of the application
|
|
61
|
+
/** Describes a frontend of the application and where it is reached. */
|
|
61
62
|
export interface FrontendMeta {
|
|
62
|
-
/** The name
|
|
63
|
+
/** The frontend name (or the hosting service's name for a service-hosted frontend). */
|
|
63
64
|
name: string;
|
|
64
|
-
/** The URL the frontend is reached
|
|
65
|
+
/** The primary URL at which the frontend is reached (the first entry in `origins`). */
|
|
65
66
|
url: string;
|
|
66
67
|
/**
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
* `https://*.example.com`.
|
|
68
|
+
* All origins at which the frontend is reached in this environment. The first
|
|
69
|
+
* entry is the primary `url`; subsequent entries may be wildcard patterns
|
|
70
|
+
* such as `https://*.example.com`.
|
|
70
71
|
*/
|
|
71
72
|
origins: string[];
|
|
72
73
|
}
|
|
73
74
|
/** Describes the environment the Encore application is running in. */
|
|
74
75
|
export interface EnvironmentMeta {
|
|
75
76
|
/**
|
|
76
|
-
* The name of environment
|
|
77
|
-
* For local development
|
|
77
|
+
* The name of the environment this application is running in.
|
|
78
|
+
* For local development, this is `"local"`.
|
|
78
79
|
*/
|
|
79
80
|
name: string;
|
|
80
81
|
/**
|
|
81
|
-
* The type of environment
|
|
82
|
-
* For local development
|
|
82
|
+
* The type of environment this application is running in.
|
|
83
|
+
* For local development, this is `"development"`.
|
|
83
84
|
*/
|
|
84
85
|
type: EnvironmentType;
|
|
85
86
|
/**
|
|
86
|
-
* The cloud this is running
|
|
87
|
-
* For local development
|
|
87
|
+
* The cloud provider this application is running on.
|
|
88
|
+
* For local development, this is `"local"`.
|
|
88
89
|
*/
|
|
89
90
|
cloud: CloudProvider;
|
|
90
91
|
}
|
|
91
92
|
/** Describes what type of environment the application is running in. */
|
|
92
93
|
export type EnvironmentType = 'production' | 'development' | 'ephemeral' | 'test';
|
|
93
|
-
/** Describes
|
|
94
|
+
/** Describes which cloud provider the application is running on. */
|
|
94
95
|
export type CloudProvider = 'aws' | 'gcp' | 'azure' | 'encore' | 'local';
|
|
95
|
-
/** Information about the build that
|
|
96
|
+
/** Information about the build that produced the running application. */
|
|
96
97
|
export interface BuildMeta {
|
|
97
98
|
/** The VCS revision the deployed application was built from. */
|
|
98
99
|
revision: string;
|
|
99
100
|
}
|
|
100
101
|
/** Information about the deployment of the running application. */
|
|
101
102
|
export interface DeployMeta {
|
|
102
|
-
/** The unique
|
|
103
|
+
/** The unique deployment ID generated by the Encore platform. */
|
|
103
104
|
id: string;
|
|
104
|
-
/** The time the Encore
|
|
105
|
+
/** The time the Encore platform deployed this build to the environment. */
|
|
105
106
|
time: Date;
|
|
106
|
-
/** The services hosted by this deployment, keyed by
|
|
107
|
+
/** The services hosted by this deployment, keyed by service name. */
|
|
107
108
|
hostedServices: Record<string, HostedService>;
|
|
108
109
|
/**
|
|
109
|
-
* The
|
|
110
|
-
*
|
|
111
|
-
*
|
|
110
|
+
* The name of the worker this process is running, if any. A worker is a
|
|
111
|
+
* long-running process belonging to a service that does not serve HTTP
|
|
112
|
+
* requests, declared under `workers` in `encore.service.json`. Undefined for
|
|
113
|
+
* the service's main process.
|
|
112
114
|
*/
|
|
113
115
|
worker?: string;
|
|
114
116
|
}
|
|
115
117
|
export interface HostedService {
|
|
116
|
-
/** The name of the service */
|
|
118
|
+
/** The name of the service. */
|
|
117
119
|
name: string;
|
|
118
120
|
}
|
|
119
121
|
/**
|
|
120
122
|
* Returns metadata about the running Encore application.
|
|
121
123
|
*
|
|
122
|
-
* The metadata is cached and
|
|
123
|
-
*
|
|
124
|
+
* The metadata is cached and returns the same object on every call, so callers
|
|
125
|
+
* must not mutate it.
|
|
124
126
|
*/
|
|
125
127
|
export declare function appMeta(): AppMeta;
|
|
126
128
|
//# sourceMappingURL=app_meta.d.ts.map
|
package/dist/app_meta.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app_meta.d.ts","sourceRoot":"","sources":["../app_meta.ts"],"names":[],"mappings":"AAEA,gDAAgD;AAChD,MAAM,WAAW,OAAO;IACtB
|
|
1
|
+
{"version":3,"file":"app_meta.d.ts","sourceRoot":"","sources":["../app_meta.ts"],"names":[],"mappings":"AAEA,gDAAgD;AAChD,MAAM,WAAW,OAAO;IACtB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;;;;;OAOG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;;;;;;OASG;IACH,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;IAEtC;;;;;OAKG;IACH,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IAExC,uEAAuE;IACvE,WAAW,EAAE,eAAe,CAAC;IAE7B,mCAAmC;IACnC,KAAK,EAAE,SAAS,CAAC;IAEjB,wCAAwC;IACxC,MAAM,EAAE,UAAU,CAAC;CACpB;AAED,wDAAwD;AACxD,MAAM,WAAW,WAAW;IAC1B,uDAAuD;IACvD,IAAI,EAAE,MAAM,CAAC;IAEb;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;;;;OAKG;IACH,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAED,uEAAuE;AACvE,MAAM,WAAW,YAAY;IAC3B,uFAAuF;IACvF,IAAI,EAAE,MAAM,CAAC;IAEb,uFAAuF;IACvF,GAAG,EAAE,MAAM,CAAC;IAEZ;;;;OAIG;IACH,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAED,sEAAsE;AACtE,MAAM,WAAW,eAAe;IAC9B;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,IAAI,EAAE,eAAe,CAAC;IAEtB;;;OAGG;IACH,KAAK,EAAE,aAAa,CAAC;CACtB;AAED,wEAAwE;AACxE,MAAM,MAAM,eAAe,GAEvB,YAAY,GAEZ,aAAa,GAEb,WAAW,GAEX,MAAM,CAAC;AAEX,oEAAoE;AACpE,MAAM,MAAM,aAAa,GACrB,KAAK,GACL,KAAK,GACL,OAAO,GACP,QAAQ,GACR,OAAO,CAAC;AAEZ,yEAAyE;AACzE,MAAM,WAAW,SAAS;IACxB,gEAAgE;IAChE,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,mEAAmE;AACnE,MAAM,WAAW,UAAU;IACzB,iEAAiE;IACjE,EAAE,EAAE,MAAM,CAAC;IAEX,2EAA2E;IAC3E,IAAI,EAAE,IAAI,CAAC;IAEX,qEAAqE;IACrE,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;IAE9C;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,aAAa;IAC5B,+BAA+B;IAC/B,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;;;GAKG;AACH,wBAAgB,OAAO,IAAI,OAAO,CA2BjC"}
|
package/dist/app_meta.js
CHANGED
|
@@ -2,8 +2,8 @@ import * as runtime from './internal/runtime/mod.js';
|
|
|
2
2
|
/**
|
|
3
3
|
* Returns metadata about the running Encore application.
|
|
4
4
|
*
|
|
5
|
-
* The metadata is cached and
|
|
6
|
-
*
|
|
5
|
+
* The metadata is cached and returns the same object on every call, so callers
|
|
6
|
+
* must not mutate it.
|
|
7
7
|
*/
|
|
8
8
|
export function appMeta() {
|
|
9
9
|
// Compute the metadata on first use.
|
package/dist/app_meta.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app_meta.js","sourceRoot":"","sources":["../app_meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"app_meta.js","sourceRoot":"","sources":["../app_meta.ts"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AW,CAAC;QACrB,KAAK,OAAO,CAAC,eAAe,CAAC,IAAI;YAC/B,OAAO,MAAM,CAAC;QAChB;YACE,OAAO,aAAa,CAAC;IACzB,CAAC;AACH,CAAC;AAED,SAAS,aAAa,CAAC,MAA6B;IAClD,QAAQ,MAAM,EAAE,CAAC;QACf,KAAK,OAAO,CAAC,aAAa,CAAC,GAAG;YAC5B,OAAO,KAAK,CAAC;QACf,KAAK,OAAO,CAAC,aAAa,CAAC,GAAG;YAC5B,OAAO,KAAK,CAAC;QACf,KAAK,OAAO,CAAC,aAAa,CAAC,KAAK;YAC9B,OAAO,OAAO,CAAC;QACjB,KAAK,OAAO,CAAC,aAAa,CAAC,MAAM;YAC/B,OAAO,QAAQ,CAAC;QAClB,KAAK,OAAO,CAAC,aAAa,CAAC,KAAK;YAC9B,OAAO,OAAO,CAAC;QACjB;YACE,OAAO,OAAO,CAAC;IACnB,CAAC;AACH,CAAC;AAED,6CAA6C;AAC7C,IAAI,MAAM,GAAmB,IAAI,CAAC"}
|
package/dist/config/config.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { type Scope } from '../internal/testing/scope.js';
|
|
2
2
|
export { Duration } from './value.js';
|
|
3
3
|
/**
|
|
4
|
-
* A
|
|
5
|
-
*
|
|
4
|
+
* A typed configuration value defined in config files alongside your code and
|
|
5
|
+
* hot-reloaded while the app runs. Call the handle to read the current value.
|
|
6
6
|
*
|
|
7
|
-
* Declare
|
|
8
|
-
* argument. Encore
|
|
9
|
-
*
|
|
7
|
+
* Declare a config with {@link config}, passing its TypeScript type as the
|
|
8
|
+
* type argument. Encore derives a schema from that type and validates config
|
|
9
|
+
* files against it before delivering values to your code.
|
|
10
10
|
*
|
|
11
11
|
* ```ts
|
|
12
12
|
* import { config, type Min, type Max, type Duration } from "@encore.dev/sdk/config";
|
|
13
13
|
*
|
|
14
14
|
* interface Checkout {
|
|
15
|
-
* //
|
|
15
|
+
* // Maximum number of items in an order.
|
|
16
16
|
* maxItems: number & Int & Min<1> & Max<500>;
|
|
17
17
|
* currencies?: string[];
|
|
18
18
|
* paymentTimeout: Duration;
|
|
@@ -23,112 +23,115 @@ export { Duration } from './value.js';
|
|
|
23
23
|
* if (items.length > checkout().maxItems) { ... }
|
|
24
24
|
* ```
|
|
25
25
|
*
|
|
26
|
-
* #
|
|
26
|
+
* # Config files
|
|
27
27
|
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
* `encore.app.json` for a shared or global config.
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
* `checkout.
|
|
34
|
-
*
|
|
28
|
+
* Values live in a file named after the config — `checkout.config.toml` or
|
|
29
|
+
* `.json` — next to the declaring service's `encore.service.json` (or next to
|
|
30
|
+
* `encore.app.json` for a shared or global config). Environment-specific
|
|
31
|
+
* overlay files override the base file:
|
|
32
|
+
* - `checkout.production.config.toml` for all environments of a given type
|
|
33
|
+
* - `checkout.@prod-eu.config.toml` for a single named environment
|
|
34
|
+
* - `checkout.user.config.toml` (gitignored) for local overrides during
|
|
35
|
+
* `encore run` (ignored in tests)
|
|
35
36
|
*
|
|
36
|
-
* Calling the config returns a snapshot
|
|
37
|
-
* changes
|
|
38
|
-
*
|
|
37
|
+
* Calling the config returns a snapshot that remains the same object until the
|
|
38
|
+
* value changes. Because values can update at runtime without a restart, call
|
|
39
|
+
* the config where you use it rather than caching the result, or subscribe
|
|
40
|
+
* with {@link Config.onChange}.
|
|
39
41
|
*/
|
|
40
42
|
export interface Config<T> {
|
|
41
|
-
/**
|
|
43
|
+
/** Returns the current config value. */
|
|
42
44
|
(): T;
|
|
43
45
|
/** The name the config was declared with. */
|
|
44
46
|
readonly name: string;
|
|
45
47
|
/**
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
* coalesced
|
|
48
|
+
* Registers a `listener` invoked whenever the config value changes while the
|
|
49
|
+
* app is running. Returns an unsubscribe function (the subscription stays
|
|
50
|
+
* active even if you discard the returned function). Rapid updates are
|
|
51
|
+
* coalesced so the listener receives the latest value once. Does not keep
|
|
52
|
+
* the process alive.
|
|
50
53
|
*/
|
|
51
54
|
onChange(listener: (value: T) => void): () => void;
|
|
52
55
|
}
|
|
53
|
-
/**
|
|
56
|
+
/** Options for declaring a config with {@link config}. */
|
|
54
57
|
export interface ConfigOptions {
|
|
55
58
|
/**
|
|
56
|
-
*
|
|
57
|
-
*
|
|
59
|
+
* Controls which services own and can read the config. Must be a string
|
|
60
|
+
* literal so Encore can resolve it statically:
|
|
58
61
|
*
|
|
59
|
-
* - `"service"
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
* - `"shared"`:
|
|
63
|
-
* recorded as
|
|
64
|
-
* - `"global"`:
|
|
65
|
-
* without
|
|
62
|
+
* - `"service"` (default): scoped to the declaring service, which has its
|
|
63
|
+
* own value. Two services may declare configs with the same name. Must be
|
|
64
|
+
* declared inside a service.
|
|
65
|
+
* - `"shared"`: app-wide with a single value; each service that reads it is
|
|
66
|
+
* recorded as a consumer. May be declared outside a service.
|
|
67
|
+
* - `"global"`: app-wide with a single value available to every service
|
|
68
|
+
* without tracking per-service usage. May be declared outside a service.
|
|
66
69
|
*
|
|
67
|
-
*
|
|
68
|
-
* declared shared or global
|
|
70
|
+
* Each config name has a single scope across the app, just like secrets: a
|
|
71
|
+
* name declared as `shared` or `global` cannot also be declared as a
|
|
72
|
+
* service-scoped config.
|
|
69
73
|
*/
|
|
70
74
|
scope?: 'service' | 'shared' | 'global';
|
|
71
75
|
/**
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
*
|
|
76
|
+
* Static string-literal tags that classify the config for policy checks
|
|
77
|
+
* (e.g. `{data: "pci"}`). Keys and values may contain lowercase letters,
|
|
78
|
+
* digits, `_`, and `-`, up to 63 characters. Keys must start with a letter
|
|
79
|
+
* and cannot start with the reserved prefix `encore`. At most 32 tags.
|
|
76
80
|
*/
|
|
77
81
|
tags?: Record<string, string>;
|
|
78
82
|
}
|
|
79
83
|
/**
|
|
80
|
-
*
|
|
81
|
-
*
|
|
82
|
-
*
|
|
84
|
+
* Declares a {@link Config}, scoped by default to the declaring service (see
|
|
85
|
+
* {@link ConfigOptions.scope}). Must be a module-level `export const` with a
|
|
86
|
+
* string-literal name.
|
|
83
87
|
*
|
|
84
88
|
* @example
|
|
85
89
|
* ```ts
|
|
86
|
-
* // A config several services
|
|
90
|
+
* // A config shared by several services.
|
|
87
91
|
* export const flags = config<Flags>("flags", {scope: "shared"});
|
|
88
92
|
* ```
|
|
89
93
|
*/
|
|
90
94
|
export declare function config<T>(name: string, opts?: ConfigOptions): Config<T>;
|
|
91
95
|
/**
|
|
92
|
-
*
|
|
93
|
-
*
|
|
94
|
-
* returns it from then on. For `@encore.dev/sdk/testing`.
|
|
96
|
+
* Sets `cfg` to `value` for the given test `scope` after validating it against
|
|
97
|
+
* the config's schema. For `@encore.dev/sdk/testing`.
|
|
95
98
|
*
|
|
96
99
|
* @internal
|
|
97
100
|
*/
|
|
98
101
|
export declare function setTestValue<T>(scope: Scope, cfg: Config<T>, value: T): void;
|
|
99
102
|
/**
|
|
100
|
-
*
|
|
101
|
-
*
|
|
102
|
-
*
|
|
103
|
+
* Requires a `number` config field to be at least `N`, written as an
|
|
104
|
+
* intersection (`number & Min<1>`). Validated by Encore against config files;
|
|
105
|
+
* at runtime the field is a plain `number`.
|
|
103
106
|
*/
|
|
104
107
|
export type Min<N extends number> = {
|
|
105
108
|
readonly '~encore.min'?: N;
|
|
106
109
|
};
|
|
107
|
-
/**
|
|
110
|
+
/** Requires a `number` config field to be at most `N` (`number & Max<500>`). See {@link Min}. */
|
|
108
111
|
export type Max<N extends number> = {
|
|
109
112
|
readonly '~encore.max'?: N;
|
|
110
113
|
};
|
|
111
|
-
/**
|
|
114
|
+
/** Requires a `number` config field to be an integer (`number & Int`). See {@link Min}. */
|
|
112
115
|
export type Int = {
|
|
113
116
|
readonly '~encore.int'?: true;
|
|
114
117
|
};
|
|
115
|
-
/**
|
|
118
|
+
/** Requires a `string` config field to be at least `N` characters long (`string & MinLen<3>`). */
|
|
116
119
|
export type MinLen<N extends number> = {
|
|
117
120
|
readonly '~encore.min_len'?: N;
|
|
118
121
|
};
|
|
119
|
-
/**
|
|
122
|
+
/** Requires a `string` config field to be at most `N` characters long (`string & MaxLen<64>`). */
|
|
120
123
|
export type MaxLen<N extends number> = {
|
|
121
124
|
readonly '~encore.max_len'?: N;
|
|
122
125
|
};
|
|
123
|
-
/**
|
|
126
|
+
/** Requires a `string` config field to match the regular expression `S` (`string & Pattern<"^[A-Z]+$">`). */
|
|
124
127
|
export type Pattern<S extends string> = {
|
|
125
128
|
readonly '~encore.pattern'?: S;
|
|
126
129
|
};
|
|
127
|
-
/**
|
|
130
|
+
/** Requires an array config field to have at least `N` items (`string[] & MinItems<1>`). */
|
|
128
131
|
export type MinItems<N extends number> = {
|
|
129
132
|
readonly '~encore.min_items'?: N;
|
|
130
133
|
};
|
|
131
|
-
/**
|
|
134
|
+
/** Requires an array config field to have at most `N` items (`string[] & MaxItems<10>`). */
|
|
132
135
|
export type MaxItems<N extends number> = {
|
|
133
136
|
readonly '~encore.max_items'?: N;
|
|
134
137
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../config/config.ts"],"names":[],"mappings":"AACA,OAAO,EAAwB,KAAK,KAAK,EAAC,MAAM,2BAA2B,CAAC;AAI5E,OAAO,EAAC,QAAQ,EAAC,MAAM,SAAS,CAAC;AAEjC
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../config/config.ts"],"names":[],"mappings":"AACA,OAAO,EAAwB,KAAK,KAAK,EAAC,MAAM,2BAA2B,CAAC;AAI5E,OAAO,EAAC,QAAQ,EAAC,MAAM,SAAS,CAAC;AAEjC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,MAAM,WAAW,MAAM,CAAC,CAAC;IACvB,wCAA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,kGAAkG;AAClG,MAAM,MAAM,MAAM,CAAC,CAAC,SAAS,MAAM,IAAI;IAAC,QAAQ,CAAC,iBAAiB,CAAC,EAAE,CAAC,CAAA;CAAC,CAAC;AAExE,6GAA6G;AAC7G,MAAM,MAAM,OAAO,CAAC,CAAC,SAAS,MAAM,IAAI;IAAC,QAAQ,CAAC,iBAAiB,CAAC,EAAE,CAAC,CAAA;CAAC,CAAC;AAEzE,4FAA4F;AAC5F,MAAM,MAAM,QAAQ,CAAC,CAAC,SAAS,MAAM,IAAI;IAAC,QAAQ,CAAC,mBAAmB,CAAC,EAAE,CAAC,CAAA;CAAC,CAAC;AAE5E,4FAA4F;AAC5F,MAAM,MAAM,QAAQ,CAAC,CAAC,SAAS,MAAM,IAAI;IAAC,QAAQ,CAAC,mBAAmB,CAAC,EAAE,CAAC,CAAA;CAAC,CAAC"}
|
package/dist/config/config.js
CHANGED
|
@@ -4,13 +4,13 @@ import { secretOfField } from './secrets.js';
|
|
|
4
4
|
import { build } from './value.js';
|
|
5
5
|
export { Duration } from './value.js';
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
7
|
+
* Declares a {@link Config}, scoped by default to the declaring service (see
|
|
8
|
+
* {@link ConfigOptions.scope}). Must be a module-level `export const` with a
|
|
9
|
+
* string-literal name.
|
|
10
10
|
*
|
|
11
11
|
* @example
|
|
12
12
|
* ```ts
|
|
13
|
-
* // A config several services
|
|
13
|
+
* // A config shared by several services.
|
|
14
14
|
* export const flags = config<Flags>("flags", {scope: "shared"});
|
|
15
15
|
* ```
|
|
16
16
|
*/
|
|
@@ -26,20 +26,19 @@ opts) {
|
|
|
26
26
|
/** The name of the config each handle reads. */
|
|
27
27
|
const names = new WeakMap();
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
* returns it from then on. For `@encore.dev/sdk/testing`.
|
|
29
|
+
* Sets `cfg` to `value` for the given test `scope` after validating it against
|
|
30
|
+
* the config's schema. For `@encore.dev/sdk/testing`.
|
|
32
31
|
*
|
|
33
32
|
* @internal
|
|
34
33
|
*/
|
|
35
34
|
export function setTestValue(scope, cfg, value) {
|
|
36
35
|
const name = names.get(cfg);
|
|
37
36
|
if (name === undefined) {
|
|
38
|
-
throw new TypeError('setConfig
|
|
37
|
+
throw new TypeError('setConfig requires a config declared with `config()`');
|
|
39
38
|
}
|
|
40
39
|
const json = JSON.stringify(value);
|
|
41
40
|
if (json === undefined) {
|
|
42
|
-
throw new TypeError(`config ${name}:
|
|
41
|
+
throw new TypeError(`config ${name}: value cannot be serialized to JSON`);
|
|
43
42
|
}
|
|
44
43
|
const prepared = JSON.parse(scope.native.setConfig(name, json));
|
|
45
44
|
const impl = runtime.RT.config(name);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../config/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAC,WAAW,EAAE,QAAQ,EAAa,MAAM,2BAA2B,CAAC;AAC5E,OAAO,EAAC,aAAa,EAAC,MAAM,WAAW,CAAC;AACxC,OAAO,EAAC,KAAK,EAAC,MAAM,SAAS,CAAC;AAE9B,OAAO,EAAC,QAAQ,EAAC,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../config/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAC,WAAW,EAAE,QAAQ,EAAa,MAAM,2BAA2B,CAAC;AAC5E,OAAO,EAAC,aAAa,EAAC,MAAM,WAAW,CAAC;AACxC,OAAO,EAAC,KAAK,EAAC,MAAM,SAAS,CAAC;AAE9B,OAAO,EAAC,QAAQ,EAAC,MAAM,SAAS,CAAC;AAuFjC;;;;;;;;;;GAUG;AACH,MAAM,UAAU,MAAM,CACpB,IAAY;AACZ,sEAAsE;AACtE,8DAA8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