@relyio/sdk 0.9.0 → 0.10.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 +21 -0
- package/dist/.tsbuildinfo +1 -1
- package/dist/{chunk-72UK5U7T.cjs → chunk-2HP566NI.cjs} +10 -2
- package/dist/{chunk-LGNJIGHL.js → chunk-2L5JUW7O.js} +14 -3
- package/dist/{chunk-SPFRDXAF.cjs → chunk-DC4QLAI3.cjs} +14 -3
- package/dist/{chunk-YEJUMW4X.js → chunk-IGHYC2WM.js} +10 -2
- package/dist/client/index.cjs +3 -3
- package/dist/client/index.d.cts +4 -4
- package/dist/client/index.d.ts +4 -4
- package/dist/client/index.js +1 -1
- package/dist/{define-content-type-cEGjIwT5.d.cts → define-content-type-DfnTu26S.d.cts} +78 -2
- package/dist/{define-content-type-cEGjIwT5.d.ts → define-content-type-DfnTu26S.d.ts} +78 -2
- package/dist/{define-schema-DgbJ5Kwn.d.cts → define-schema-W-0u1Jg1.d.cts} +13 -20
- package/dist/{define-schema-BPj2srgh.d.ts → define-schema-rbTrXxNN.d.ts} +13 -20
- package/dist/{index-Cv4tmcrw.d.ts → index-B9hDmCho.d.ts} +1 -1
- package/dist/{index-B9axQW8s.d.cts → index-KuYgc7eG.d.cts} +3 -3
- package/dist/{index-B_rIWO_l.d.cts → index-NnLCwSqF.d.cts} +1 -1
- package/dist/{index-GIfaMlQ7.d.ts → index-rLEBSFvK.d.ts} +3 -3
- package/dist/index.cjs +82 -82
- package/dist/index.d.cts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +3 -3
- package/dist/schema/index.cjs +35 -35
- package/dist/schema/index.d.cts +3 -3
- package/dist/schema/index.d.ts +3 -3
- package/dist/schema/index.js +1 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @relyio/sdk
|
|
2
2
|
|
|
3
|
+
## 0.10.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- d147cb3: **A view's filters are a flat list.** `defineView`'s `filters` take `{ field, operator, value }` filters, joined by AND — the Filters the Studio's entry list takes, each shown as a chip. The group form, an `operator` with `conditions`, is gone: `ViewFilterGroup` is no longer exported, `ViewFilter` is one filter, and `defineView` throws, naming the view and the filter, if you pass a group from JavaScript. For an OR within one field, use `isAnyOf`:
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
defineView('newsAndSport', {
|
|
11
|
+
name: 'News and sport',
|
|
12
|
+
scope: { type: 'contentType', contentType: 'post' },
|
|
13
|
+
filters: [
|
|
14
|
+
{ field: 'category', operator: 'isAnyOf', value: ['news', 'sport'] },
|
|
15
|
+
{ field: 'featured', operator: 'is', value: true },
|
|
16
|
+
],
|
|
17
|
+
})
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
A YAML schema's `views[].filters` are the same list, and `relyio validate` and `relyio deploy` refuse a filter group by name, at `views.<n>.filters.<n>`.
|
|
21
|
+
|
|
22
|
+
**Deploy now checks each view filter against the entries it narrows.** The field must be one the view's entries can be filtered by, and must offer the operator and take the value — so a boolean field takes `is` with `true` or `false`, not `isTrue`, and a tags field is not filtered with `includes`. A filter that does not fit is refused by name at `views.<n>.filters.<n>.field`, `.operator` or `.value`. `relyio status` refuses it too. `relyio validate` checks a view filter's shape, not this: run `relyio status` to see what deploy will say.
|
|
23
|
+
|
|
3
24
|
## 0.9.0
|
|
4
25
|
|
|
5
26
|
### Minor Changes
|