@palbase/backend 10.1.0 → 10.2.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/docs/config.md CHANGED
@@ -84,11 +84,17 @@ export default defineFlags({
84
84
  new_checkout: flag({ type: "boolean", default: false, description: "Gate the redesigned checkout" }),
85
85
  upload_limit: flag({ type: "number", default: 10 }),
86
86
  theme: flag({ type: "string", default: "system", variants: ["light", "dark", "system"] }),
87
+ limits: flag({ type: "json", default: { daily: 10, burst: 50 } }),
87
88
  },
88
89
  });
89
90
  ```
90
91
 
91
- Author it: `palbase flags add new_checkout --type boolean --default false`. On
92
+ Four types: `boolean`, `number`, `string`, `json`. A `json` flag's default is an
93
+ object (not an array, not a scalar) and nests at most 3 deep. `variants` is for
94
+ `string` only — the flags service rejects it on every other type.
95
+
96
+ Author it: `palbase flags add new_checkout --type boolean --default false`, or
97
+ `palbase flags add limits --type json --default '{"daily":10}'`. On
92
98
  deploy, the definitions are upserted to the flags service (idempotent). A flag
93
99
  removed from the file is **not auto-deleted** (orphan definitions are harmless).
94
100
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@palbase/backend",
3
- "version": "10.1.0",
3
+ "version": "10.2.0",
4
4
  "description": "Palbase Backend SDK — class controllers (@Controller/@Get/@Post + @Body/@QueryParams/@Param), error classes, schema DSL",
5
5
  "license": "MIT",
6
6
  "repository": {