@dbx-tools/shared-core 0.6.73 → 0.6.75

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.
Files changed (2) hide show
  1. package/README.md +7 -4
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -160,6 +160,7 @@ goes.
160
160
 
161
161
  ```ts
162
162
  const config = {
163
+ isDatabricksApp: env.isAppEnv(),
163
164
  host: env.string(options.host, "SMTP_HOST"),
164
165
  // Several names for one setting; earlier names win.
165
166
  appId: env.string(options.appId, ["TEAMS_APP_ID", "MICROSOFT_APP_ID"]),
@@ -182,6 +183,8 @@ chain - ignoring what a deployment explicitly configured hides the mistake.
182
183
 
183
184
  Browser-safe: `process` is reached through `globalThis` and guarded, so every
184
185
  lookup simply misses off-process and the caller's fallback applies.
186
+ `isAppEnv()` checks the required Databricks App name, workspace host, and valid
187
+ TCP port shape without adding Node types to this shared package.
185
188
 
186
189
  Pair it with `object.optional()` when a resolved value is an optional field -
187
190
  `...object.optional("endpoint", env.string(...))` keeps an absent field ABSENT
@@ -439,10 +442,10 @@ without paying formatting cost when disabled.
439
442
  field spreading, deep equality, JSON-round-trip guards
440
443
  (`isSerializableValue`), canonical identity keys (`toStableKey`), shape types,
441
444
  and lazy sequence transforms + collection helpers.
442
- - `env` - config-over-environment resolution: strings, booleans, positive
443
- numbers/integers, and lists, with env-name fallback chains. `name()` gives the
444
- primary variable name for a log line or error - an `EnvKey` may be a bare
445
- string, so indexing `keys[0]` yields a character, not a name.
445
+ - `env` - config-over-environment resolution, Databricks App runtime detection,
446
+ and TCP port bounds. `name()` gives the primary variable name for a log line
447
+ or error - an `EnvKey` may be a bare string, so indexing `keys[0]` yields a
448
+ character, not a name.
446
449
  - `predicate` - composable boolean/type predicates.
447
450
  - `pattern` - literal / glob / `/regex/` allow-list matching compiled to a
448
451
  predicate.
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/reggie-db/dbx-tools.git",
6
- "directory": "packages/shared/core"
6
+ "directory": "packages/js/shared/core"
7
7
  },
8
8
  "scripts": {
9
9
  "build": "projen build",
@@ -43,7 +43,7 @@
43
43
  "./package.json": "./package.json"
44
44
  }
45
45
  },
46
- "version": "0.6.73",
46
+ "version": "0.6.75",
47
47
  "types": "./lib/index.d.ts",
48
48
  "type": "module",
49
49
  "exports": {