effect-app 4.0.0-beta.285 → 4.0.0-beta.286
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/CHANGELOG.md +6 -0
- package/dist/Model/Repository/internal/internal.d.ts.map +1 -1
- package/dist/Model/Repository/internal/internal.js +2 -2
- package/dist/Model/query/new-kid-interpreter.d.ts.map +1 -1
- package/dist/Model/query/new-kid-interpreter.js +2 -2
- package/dist/RequestContext.d.ts +47 -117
- package/dist/RequestContext.d.ts.map +1 -1
- package/dist/RequestContext.js +3 -12
- package/dist/Schema/Class.d.ts +1 -1
- package/dist/Schema/Class.d.ts.map +1 -1
- package/dist/Schema/Class.js +2 -2
- package/dist/Schema/ext.d.ts +1 -1
- package/dist/Schema/ext.d.ts.map +1 -1
- package/dist/Schema/ext.js +1 -1
- package/dist/Schema/moreStrings.d.ts +1 -1
- package/dist/Schema/moreStrings.d.ts.map +1 -1
- package/dist/Schema/moreStrings.js +1 -1
- package/dist/Schema/numbers.d.ts +1 -1
- package/dist/Schema/numbers.d.ts.map +1 -1
- package/dist/Schema/schema.d.ts +1 -1
- package/dist/Schema/schema.d.ts.map +1 -1
- package/dist/Schema/schema.js +2 -2
- package/dist/Schema/strings.d.ts +1 -1
- package/dist/Schema/strings.d.ts.map +1 -1
- package/dist/Schema.d.ts +1 -1
- package/dist/Schema.d.ts.map +1 -1
- package/dist/Schema.js +2 -2
- package/package.json +2 -2
- package/src/Model/Repository/internal/internal.ts +1 -1
- package/src/Model/query/new-kid-interpreter.ts +1 -1
- package/src/RequestContext.ts +2 -49
- package/src/Schema/Class.ts +1 -1
- package/src/Schema/ext.ts +1 -1
- package/src/Schema/moreStrings.ts +1 -1
- package/src/Schema/numbers.ts +1 -1
- package/src/Schema/schema.ts +1 -1
- package/src/Schema/strings.ts +1 -1
- package/src/Schema.ts +1 -1
- package/test/special.test.ts +1 -1
package/src/Schema/ext.ts
CHANGED
|
@@ -37,11 +37,11 @@ import * as Function from "effect/Function"
|
|
|
37
37
|
import * as Option from "effect/Option"
|
|
38
38
|
import * as S from "effect/Schema"
|
|
39
39
|
import { isDateValid } from "effect/Schema"
|
|
40
|
-
import type * as SchemaAST from "../SchemaAST.ts"
|
|
41
40
|
import * as SchemaIssue from "effect/SchemaIssue"
|
|
42
41
|
import * as SchemaTransformation from "effect/SchemaTransformation"
|
|
43
42
|
import { type NonEmptyReadonlyArray } from "../Array.ts"
|
|
44
43
|
import * as Context from "../Context.ts"
|
|
44
|
+
import type * as SchemaAST from "../SchemaAST.ts"
|
|
45
45
|
import { extendM, typedKeysOf } from "../utils.ts"
|
|
46
46
|
import { type AST } from "./schema.ts"
|
|
47
47
|
|
|
@@ -14,10 +14,10 @@ import type * as B from "effect/Brand"
|
|
|
14
14
|
import * as Effect from "effect/Effect"
|
|
15
15
|
import { pipe } from "effect/Function"
|
|
16
16
|
import * as S from "effect/Schema"
|
|
17
|
-
import type * as SchemaAST from "../SchemaAST.ts"
|
|
18
17
|
import type { Simplify } from "effect/Types"
|
|
19
18
|
import { customRandom, nanoid, urlAlphabet } from "nanoid"
|
|
20
19
|
import validator from "validator"
|
|
20
|
+
import type * as SchemaAST from "../SchemaAST.ts"
|
|
21
21
|
import { type BrandedSchema, fromBrand, nominal } from "./brand.ts"
|
|
22
22
|
import { withDefaultMake } from "./ext.ts"
|
|
23
23
|
import { type B as SchemaB } from "./schema.ts"
|
package/src/Schema/numbers.ts
CHANGED
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
import { extendM } from "effect-app/utils"
|
|
12
12
|
import * as Effect from "effect/Effect"
|
|
13
13
|
import * as S from "effect/Schema"
|
|
14
|
-
import type * as SchemaAST from "../SchemaAST.ts"
|
|
15
14
|
import type { Simplify } from "effect/Types"
|
|
15
|
+
import type * as SchemaAST from "../SchemaAST.ts"
|
|
16
16
|
import { type BrandedSchema, fromBrand, nominal } from "./brand.ts"
|
|
17
17
|
import { withDefaultMake } from "./ext.ts"
|
|
18
18
|
import { type B } from "./schema.ts"
|
package/src/Schema/schema.ts
CHANGED
package/src/Schema/strings.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type * as B from "effect/Brand"
|
|
2
2
|
import * as S from "effect/Schema"
|
|
3
|
-
import type * as SchemaAST from "../SchemaAST.ts"
|
|
4
3
|
import type { Simplify } from "effect/Types"
|
|
4
|
+
import type * as SchemaAST from "../SchemaAST.ts"
|
|
5
5
|
import { type BrandedSchema, fromBrand, nominal } from "./brand.ts"
|
|
6
6
|
import { withDefaultMake } from "./ext.ts"
|
|
7
7
|
|
package/src/Schema.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as S from "effect/Schema"
|
|
2
|
-
import * as SchemaAST from "./SchemaAST.ts"
|
|
3
2
|
import { type Simplify } from "effect/Struct"
|
|
4
3
|
import type * as Tracer from "effect/Tracer"
|
|
5
4
|
import type { RequiredKeys } from "effect/Types"
|
|
@@ -9,6 +8,7 @@ import { Email as EmailT, type Email as EmailType } from "./Schema/email.ts"
|
|
|
9
8
|
import { concurrencyUnbounded, withDefaultMake, withDefaultParseOptions } from "./Schema/ext.ts"
|
|
10
9
|
import { PhoneNumber as PhoneNumberT, type PhoneNumber as PhoneNumberType } from "./Schema/phoneNumber.ts"
|
|
11
10
|
import { type AST } from "./Schema/schema.ts"
|
|
11
|
+
import * as SchemaAST from "./SchemaAST.ts"
|
|
12
12
|
import { copy, extendM, type StructuralCopyOrigin } from "./utils.ts"
|
|
13
13
|
|
|
14
14
|
// ---------------------------------------------------------------------------
|
package/test/special.test.ts
CHANGED
|
@@ -469,7 +469,7 @@ describe("OpaqueFacade", () => {
|
|
|
469
469
|
})
|
|
470
470
|
|
|
471
471
|
it("keeps generated struct facades decodable with public statics", () => {
|
|
472
|
-
const input: RequestContext.Encoded = {
|
|
472
|
+
const input: typeof RequestContext.Encoded = {
|
|
473
473
|
span: { traceId: "trace", spanId: "span", sampled: true },
|
|
474
474
|
name: "operation",
|
|
475
475
|
locale: "en",
|