@palbase/backend 10.0.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/dist/index.cjs +33 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +76 -25
- package/dist/index.d.ts +76 -25
- package/dist/index.js +33 -5
- package/dist/index.js.map +1 -1
- package/docs/config.md +7 -1
- package/package.json +1 -1
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
|
-
|
|
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