@plutocms/supabase 0.25.0 → 0.26.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 +7 -0
- package/FEATURES.md +1 -1
- package/package.json +2 -2
- package/server/utils/content-adapter.ts +5 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.26.0](https://github.com/plutocms/supabase/compare/v0.25.0...v0.26.0) (2026-11-07)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **supabase:** the status filter of the admin list ([#248](https://github.com/plutocms/supabase/issues/248)) ([b9f0d4e](https://github.com/plutocms/supabase/commit/b9f0d4e47b951b31061aa31400a152d51abe3850))
|
|
9
|
+
|
|
3
10
|
## [0.25.0](https://github.com/plutocms/supabase/compare/v0.24.0...v0.25.0) (2026-11-06)
|
|
4
11
|
|
|
5
12
|
|
package/FEATURES.md
CHANGED
|
@@ -16,7 +16,7 @@ policies shared by every project here.
|
|
|
16
16
|
@.claude/skills/users-and-roles/SKILL.md
|
|
17
17
|
- Content adapter: a Supabase/PostgREST-backed `PlutoContentAdapter`, plugging any layer's
|
|
18
18
|
declared content type into `@plutocms/core`'s generic content routes. It supports query
|
|
19
|
-
filters (a filter on a `multiple` reference matches a list column) and `ids`, puts the timestamps on items, and reads the public API of core with an anonymous client.
|
|
19
|
+
filters (a filter on a `multiple` reference matches a list column), the `status` of the admin list and `ids`, puts the timestamps on items, and reads the public API of core with an anonymous client.
|
|
20
20
|
It keeps the revisions of every item (`pluto_content_revisions`, migration 011) for the History of core.
|
|
21
21
|
It keeps a server copy of the unsaved changes of each editor (`pluto_content_backups`, migration
|
|
22
22
|
012), so the edit form can offer them on another device.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plutocms/supabase",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.26.0",
|
|
5
5
|
"description": "Supabase backend layer for Pluto",
|
|
6
6
|
"author": "Victor Ribeiro",
|
|
7
7
|
"homepage": "https://github.com/plutocms/supabase/tree/main/packages/supabase#readme",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@nuxt/ui": "^4.12.0",
|
|
32
32
|
"@nuxtjs/supabase": "^2.1.0",
|
|
33
|
-
"@plutocms/core": ">=0.
|
|
33
|
+
"@plutocms/core": ">=0.61.1 <1.0.0",
|
|
34
34
|
"@supabase/supabase-js": "^2.117.3",
|
|
35
35
|
"postgres": "^3.4.9",
|
|
36
36
|
"supabase": "^2.121.0",
|
|
@@ -286,6 +286,11 @@ async function list(
|
|
|
286
286
|
builder = builder.eq(statusColumn, publishedValue)
|
|
287
287
|
}
|
|
288
288
|
|
|
289
|
+
// Only one status. The status column has a default and no null, so an equality is enough.
|
|
290
|
+
if (statusColumn && query.status !== undefined) {
|
|
291
|
+
builder = builder.eq(statusColumn, query.status)
|
|
292
|
+
}
|
|
293
|
+
|
|
289
294
|
for (const [field, value] of Object.entries(query.filters ?? {})) {
|
|
290
295
|
const column = resolveFieldColumn(ctx.type, field, 'filter')
|
|
291
296
|
|