@smartive/datocms-utils 2.3.0 → 2.3.2
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/package.json +21 -6
- package/.github/workflows/release.yml +0 -33
- package/.github/workflows/test.yml +0 -25
- package/.nvmrc +0 -1
- package/.prettierrc.json +0 -1
- package/.releaserc.json +0 -10
- package/CHANGELOG.md +0 -6
- package/eslint.config.mjs +0 -3
- package/renovate.json +0 -4
- package/tsconfig.json +0 -18
package/package.json
CHANGED
|
@@ -1,14 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smartive/datocms-utils",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.2",
|
|
4
4
|
"description": "A set of utilities and helpers to work with DatoCMS in a Next.js project.",
|
|
5
|
-
"
|
|
6
|
-
"
|
|
5
|
+
"type": "module",
|
|
6
|
+
"source": "./src/index.ts",
|
|
7
|
+
"main": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist/**/*",
|
|
11
|
+
"src/**/*"
|
|
12
|
+
],
|
|
7
13
|
"exports": {
|
|
8
|
-
"
|
|
9
|
-
|
|
14
|
+
".": {
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"default": "./dist/index.js"
|
|
17
|
+
},
|
|
18
|
+
"./redis": {
|
|
19
|
+
"types": "./dist/cache-tags-redis.d.ts",
|
|
20
|
+
"default": "./dist/cache-tags-redis.js"
|
|
21
|
+
},
|
|
22
|
+
"./postgres": {
|
|
23
|
+
"types": "./dist/cache-tags.d.ts",
|
|
24
|
+
"default": "./dist/cache-tags.js"
|
|
25
|
+
}
|
|
10
26
|
},
|
|
11
|
-
"type": "module",
|
|
12
27
|
"scripts": {
|
|
13
28
|
"build": "tsc",
|
|
14
29
|
"lint": "eslint src",
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
name: Release npm package
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches:
|
|
6
|
-
- main
|
|
7
|
-
|
|
8
|
-
permissions:
|
|
9
|
-
contents: write # to be able to publish a GitHub release
|
|
10
|
-
issues: write # to be able to comment on released issues
|
|
11
|
-
pull-requests: write # to be able to comment on released pull requests
|
|
12
|
-
id-token: write # to enable use of OIDC for trusted publishing and npm provenance
|
|
13
|
-
|
|
14
|
-
jobs:
|
|
15
|
-
release:
|
|
16
|
-
name: Build & release
|
|
17
|
-
runs-on: ubuntu-latest
|
|
18
|
-
|
|
19
|
-
steps:
|
|
20
|
-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
|
21
|
-
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6
|
|
22
|
-
with:
|
|
23
|
-
node-version: 24
|
|
24
|
-
- run: npm ci
|
|
25
|
-
- run: npm run build
|
|
26
|
-
- name: semantic release
|
|
27
|
-
uses: cycjimmy/semantic-release-action@v6
|
|
28
|
-
with:
|
|
29
|
-
semantic_version: 25
|
|
30
|
-
extra_plugins: |
|
|
31
|
-
@semantic-release/changelog@6
|
|
32
|
-
env:
|
|
33
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
name: Test
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
pull_request:
|
|
5
|
-
branches:
|
|
6
|
-
- '**'
|
|
7
|
-
|
|
8
|
-
concurrency:
|
|
9
|
-
group: tests-${{ github.ref }}
|
|
10
|
-
cancel-in-progress: true
|
|
11
|
-
|
|
12
|
-
jobs:
|
|
13
|
-
test:
|
|
14
|
-
name: Lint & test
|
|
15
|
-
runs-on: ubuntu-latest
|
|
16
|
-
|
|
17
|
-
steps:
|
|
18
|
-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
|
19
|
-
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6
|
|
20
|
-
with:
|
|
21
|
-
node-version: 24
|
|
22
|
-
- run: npm ci
|
|
23
|
-
- run: npm run prettier
|
|
24
|
-
- run: npm run lint
|
|
25
|
-
- run: npm run build
|
package/.nvmrc
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
24
|
package/.prettierrc.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"@smartive/prettier-config"
|
package/.releaserc.json
DELETED
package/CHANGELOG.md
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
# [2.3.0](https://github.com/smartive/datocms-utils/compare/v2.2.1...v2.3.0) (2026-02-12)
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
### Features
|
|
5
|
-
|
|
6
|
-
* add named exports ([#207](https://github.com/smartive/datocms-utils/issues/207)) ([b8db112](https://github.com/smartive/datocms-utils/commit/b8db11287a8d04c5271e540bcbc0cbf143bb838c))
|
package/eslint.config.mjs
DELETED
package/renovate.json
DELETED
package/tsconfig.json
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"declaration": true,
|
|
4
|
-
"outDir": "./dist/",
|
|
5
|
-
"rootDirs": ["./src"],
|
|
6
|
-
"sourceMap": true,
|
|
7
|
-
"strict": true,
|
|
8
|
-
"noImplicitReturns": true,
|
|
9
|
-
"noImplicitAny": true,
|
|
10
|
-
"moduleResolution": "node",
|
|
11
|
-
"allowSyntheticDefaultImports": true,
|
|
12
|
-
"allowJs": true,
|
|
13
|
-
"resolveJsonModule": true,
|
|
14
|
-
"module": "esnext",
|
|
15
|
-
"target": "esnext"
|
|
16
|
-
},
|
|
17
|
-
"include": ["./src/**/*"]
|
|
18
|
-
}
|