@remoteoss/remote-json-schema-form-kit 0.0.10 → 0.0.11-beta.0
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 +11 -0
- package/dist/index.d.ts +6 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
#### 0.0.11-beta.0 (2026-04-14)
|
|
2
|
+
|
|
3
|
+
#### New features
|
|
4
|
+
|
|
5
|
+
- Added operator `date_difference_in_days`
|
|
6
|
+
|
|
7
|
+
#### Bug fixes
|
|
8
|
+
|
|
9
|
+
- Date operators are time-zone safe, so it keeps the same day regardless the time-zone.
|
|
10
|
+
- Normalize all date operators to return in `yyyy-mm-dd` format.
|
|
11
|
+
|
|
1
12
|
#### 0.0.10 (2026-03-19)
|
|
2
13
|
|
|
3
14
|
#### New features
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createHeadlessForm as createHeadlessFormNext, modify as modifyNext } from '@remoteoss/json-schema-form';
|
|
2
|
-
import { type Field as FieldNext, type CreateHeadlessFormOptions, type FormErrors as FormErrorsNext } from '@remoteoss/json-schema-form';
|
|
2
|
+
import { type Field as FieldNext, type CreateHeadlessFormOptions, type FormErrors as FormErrorsNext, type ValidationResult } from '@remoteoss/json-schema-form';
|
|
3
3
|
import { createHeadlessForm as createHeadlessFormV0, modify as modifyV0 } from '@remoteoss/json-schema-form-v0-deprecated';
|
|
4
4
|
export { buildCompleteYupSchema, pickXKey } from '@remoteoss/json-schema-form-v0-deprecated';
|
|
5
5
|
/**
|
|
@@ -11,9 +11,11 @@ export type { Fields, FieldAttrs, JSONSchemaObjectType, HeadlessFormOutput, } fr
|
|
|
11
11
|
type FormSchemaNext = Parameters<typeof createHeadlessFormNext>[0];
|
|
12
12
|
type FormSchemaLegacy = Parameters<typeof createHeadlessFormV0>[0];
|
|
13
13
|
type FormSchema = FormSchemaNext | FormSchemaLegacy;
|
|
14
|
-
type
|
|
15
|
-
type FormResultLegacy = ReturnType<typeof createHeadlessFormV0>;
|
|
16
|
-
type
|
|
14
|
+
export type FormResult = ReturnType<typeof createHeadlessFormNext>;
|
|
15
|
+
export type FormResultLegacy = ReturnType<typeof createHeadlessFormV0>;
|
|
16
|
+
export type { ValidationResult };
|
|
17
|
+
export type ValidationResultLegacy = ReturnType<typeof createHeadlessFormV0>['handleValidation'];
|
|
18
|
+
type FormResultForVersion<TNextVersion extends boolean> = TNextVersion extends true ? FormResult : FormResultLegacy;
|
|
17
19
|
type ModifyResultNext = ReturnType<typeof modifyNext>;
|
|
18
20
|
type ModifyResultLegacy = ReturnType<typeof modifyV0>;
|
|
19
21
|
type ModifyResultForVersion<TNextVersion extends boolean> = TNextVersion extends true ? ModifyResultNext : ModifyResultLegacy;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,IAAI,sBAAsB,EAC5C,MAAM,IAAI,UAAU,EACrB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,KAAK,KAAK,IAAI,SAAS,EACvB,KAAK,yBAAyB,EAC9B,KAAK,UAAU,IAAI,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,IAAI,sBAAsB,EAC5C,MAAM,IAAI,UAAU,EACrB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,KAAK,KAAK,IAAI,SAAS,EACvB,KAAK,yBAAyB,EAC9B,KAAK,UAAU,IAAI,cAAc,EACjC,KAAK,gBAAgB,EACtB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,kBAAkB,IAAI,oBAAoB,EAC1C,MAAM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