Skip to content

Commit b14c6d8

Browse files
Version Packages (#24)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent b9d3b0a commit b14c6d8

File tree

7 files changed

+128
-78
lines changed

7 files changed

+128
-78
lines changed

.changeset/giant-ties-help.md

-18
This file was deleted.

.changeset/tricky-experts-grin.md

-5
This file was deleted.

.changeset/wild-dodos-invite.md

-53
This file was deleted.

packages/core/CHANGELOG.md

+68
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,73 @@
11
# @fn-sphere/core
22

3+
## 0.1.2
4+
5+
### Patch Changes
6+
7+
- 336fe84: `getParametersExceptFirst` now returns an array instead of a Zod tuple.
8+
9+
```ts
10+
import { getParametersExceptFirst } from "@fn-sphere/core";
11+
12+
const schema = {
13+
name: "test",
14+
define: z.function().args(z.number(), z.boolean()).returns(z.void()),
15+
implement: () => {},
16+
};
17+
18+
isSameType(z.tuple(getParametersExceptFirst(schema)), z.tuple([z.boolean()]));
19+
// true
20+
```
21+
22+
- b9d3b0a: Rename and export `FilterRule`
23+
24+
```ts
25+
interface SingleFilter {
26+
type: "Filter";
27+
/**
28+
* Field path
29+
*
30+
* If it's a empty array, it means the root object.
31+
* If not provided, it means user didn't select a field.
32+
*/
33+
path?: FilterPath;
34+
/**
35+
* Filter name
36+
*
37+
* If not provided, it means user didn't select a filter.
38+
*/
39+
name?: string;
40+
/**
41+
* Arguments for the filter function
42+
*/
43+
args: unknown[];
44+
invert?: boolean;
45+
}
46+
47+
interface SingleFilter extends SingleFilterInput {
48+
/**
49+
* Unique id, used for tracking changes or resorting
50+
*/
51+
id: FilterId;
52+
}
53+
54+
export interface FilterGroupInput {
55+
type: "FilterGroup";
56+
op: "and" | "or";
57+
conditions: (SingleFilter | FilterGroup)[];
58+
invert?: boolean;
59+
}
60+
61+
export interface FilterGroup extends FilterGroupInput {
62+
/**
63+
* Unique id, used for tracking changes or resorting
64+
*/
65+
id: FilterId;
66+
}
67+
68+
export type FilterRule = SingleFilter | FilterGroup;
69+
```
70+
371
## 0.1.0
472

573
### Minor Changes

packages/core/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@fn-sphere/core",
3-
"version": "0.1.0",
3+
"version": "0.1.2",
44
"description": "",
55
"type": "module",
66
"main": "src/index.ts",

packages/filter/CHANGELOG.md

+58
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,63 @@
11
# @fn-sphere/filter
22

3+
## 0.1.2
4+
5+
### Patch Changes
6+
7+
- b9d3b0a: chore: add type export for filter specs
8+
- b9d3b0a: Rename and export `FilterRule`
9+
10+
```ts
11+
interface SingleFilter {
12+
type: "Filter";
13+
/**
14+
* Field path
15+
*
16+
* If it's a empty array, it means the root object.
17+
* If not provided, it means user didn't select a field.
18+
*/
19+
path?: FilterPath;
20+
/**
21+
* Filter name
22+
*
23+
* If not provided, it means user didn't select a filter.
24+
*/
25+
name?: string;
26+
/**
27+
* Arguments for the filter function
28+
*/
29+
args: unknown[];
30+
invert?: boolean;
31+
}
32+
33+
interface SingleFilter extends SingleFilterInput {
34+
/**
35+
* Unique id, used for tracking changes or resorting
36+
*/
37+
id: FilterId;
38+
}
39+
40+
export interface FilterGroupInput {
41+
type: "FilterGroup";
42+
op: "and" | "or";
43+
conditions: (SingleFilter | FilterGroup)[];
44+
invert?: boolean;
45+
}
46+
47+
export interface FilterGroup extends FilterGroupInput {
48+
/**
49+
* Unique id, used for tracking changes or resorting
50+
*/
51+
id: FilterId;
52+
}
53+
54+
export type FilterRule = SingleFilter | FilterGroup;
55+
```
56+
57+
- Updated dependencies [336fe84]
58+
- Updated dependencies [b9d3b0a]
59+
- @fn-sphere/core@0.1.2
60+
361
## 0.1.1
462

563
### Patch Changes

packages/filter/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@fn-sphere/filter",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"type": "module",
55
"main": "src/index.ts",
66
"scripts": {

0 commit comments

Comments
 (0)