@delma/fylo 1.0.0 → 1.0.1
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/.github/workflows/publish.yml +4 -14
- package/README.md +4 -4
- package/package.json +1 -1
|
@@ -36,6 +36,7 @@ jobs:
|
|
|
36
36
|
needs: test
|
|
37
37
|
permissions:
|
|
38
38
|
contents: write # create git tags
|
|
39
|
+
id-token: write # npm provenance
|
|
39
40
|
|
|
40
41
|
steps:
|
|
41
42
|
- name: Checkout
|
|
@@ -53,7 +54,6 @@ jobs:
|
|
|
53
54
|
uses: actions/setup-node@v4
|
|
54
55
|
with:
|
|
55
56
|
node-version: '20'
|
|
56
|
-
registry-url: 'https://registry.npmjs.org'
|
|
57
57
|
|
|
58
58
|
- name: Upgrade npm
|
|
59
59
|
run: npm install -g npm@latest
|
|
@@ -70,20 +70,10 @@ jobs:
|
|
|
70
70
|
fi
|
|
71
71
|
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
|
|
72
72
|
|
|
73
|
-
- name:
|
|
73
|
+
- name: Publish to npm (Trusted Publishing via OIDC)
|
|
74
74
|
run: |
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
exit 1
|
|
78
|
-
fi
|
|
79
|
-
env:
|
|
80
|
-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
81
|
-
|
|
82
|
-
- name: Publish to npm
|
|
83
|
-
run: |
|
|
84
|
-
npm publish --access public
|
|
85
|
-
env:
|
|
86
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
75
|
+
echo "registry=https://registry.npmjs.org/" >> ~/.npmrc
|
|
76
|
+
npm publish --access public --provenance
|
|
87
77
|
|
|
88
78
|
- name: Create and push version tag
|
|
89
79
|
run: |
|
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ Built for **serverless** runtimes (AWS Lambda, Cloudflare Workers) — no persis
|
|
|
9
9
|
## Install
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
|
-
bun add @
|
|
12
|
+
bun add @delma/fylo
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
## Environment Variables
|
|
@@ -30,7 +30,7 @@ bun add @vyckr/fylo
|
|
|
30
30
|
### CRUD — NoSQL API
|
|
31
31
|
|
|
32
32
|
```typescript
|
|
33
|
-
import Fylo from "@
|
|
33
|
+
import Fylo from "@delma/fylo"
|
|
34
34
|
|
|
35
35
|
const fylo = new Fylo()
|
|
36
36
|
|
|
@@ -182,7 +182,7 @@ When `STRICT` is set, documents are validated against CHEX schemas before writes
|
|
|
182
182
|
STRICT=true bun run start
|
|
183
183
|
```
|
|
184
184
|
|
|
185
|
-
Schemas are `.d.ts` interface declarations generated by [`@
|
|
185
|
+
Schemas are `.d.ts` interface declarations generated by [`@delma/chex`](https://github.com/Chidelma/CHEX).
|
|
186
186
|
|
|
187
187
|
## Development
|
|
188
188
|
|
|
@@ -227,4 +227,4 @@ Fields listed in `$encrypted` in a collection schema are encrypted with AES-256-
|
|
|
227
227
|
|
|
228
228
|
## License
|
|
229
229
|
|
|
230
|
-
MIT
|
|
230
|
+
MIT
|