Skip to content

Commit 2d8312d

Browse files
committed
chore(ci): simplify git-cliff config and upgrade GitHub Actions to v5
Slim cliff.toml to minimal overrides (header, tag_pattern, filter_commits). Regenerate CHANGELOG.md with default template. Upgrade actions/checkout and actions/setup-node from v4 to v5 across all workflows.
1 parent 0d7c30a commit 2d8312d

File tree

6 files changed

+97
-149
lines changed

6 files changed

+97
-149
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ jobs:
2020

2121
steps:
2222
- name: Checkout repository
23-
uses: actions/checkout@v4
23+
uses: actions/checkout@v5
2424

2525
- name: Setup Node.js
26-
uses: actions/setup-node@v4
26+
uses: actions/setup-node@v5
2727
with:
2828
node-version-file: .nvmrc
2929
cache: 'npm'
@@ -47,10 +47,10 @@ jobs:
4747
needs: [check]
4848
steps:
4949
- name: Checkout repository
50-
uses: actions/checkout@v4
50+
uses: actions/checkout@v5
5151

5252
- name: Setup Node.js
53-
uses: actions/setup-node@v4
53+
uses: actions/setup-node@v5
5454
with:
5555
node-version-file: .nvmrc
5656
cache: 'npm'

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Checkout repository
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@v5
1818
with:
1919
fetch-depth: 0
2020

2121
- name: Setup Node.js
22-
uses: actions/setup-node@v4
22+
uses: actions/setup-node@v5
2323
with:
2424
node-version-file: .nvmrc
2525
cache: 'npm'

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717

1818
steps:
1919
- name: Checkout repository
20-
uses: actions/checkout@v4
20+
uses: actions/checkout@v5
2121
with:
2222
fetch-depth: 0
2323

@@ -40,7 +40,7 @@ jobs:
4040
4141
- name: Setup Node.js
4242
if: steps.version.outputs.bump == 'true'
43-
uses: actions/setup-node@v4
43+
uses: actions/setup-node@v5
4444
with:
4545
node-version-file: .nvmrc
4646

CHANGELOG.md

Lines changed: 84 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -1,135 +1,132 @@
11
# Changelog
22

3-
All notable changes to this project will be documented in this file.
3+
## [unreleased]
44

5-
## [1.5.0](https://github.com/StudioLambda/Query/compare/v1.4.0...v1.5.0) - 2026-03-23
5+
### 🚀 Features
66

7-
### Bug Fixes
7+
- Improve tests
8+
- Remove memos
9+
- _(tests)_ Github actions reporter
10+
- Add agent skill and improve readonly type safety
11+
- _(react)_ Use useEffectEvent for effect event handlers
12+
- _(ci)_ Add automated releases with git-cliff and npm trusted publishing
813

9-
- Remove unecesary dependency ([fbfda60](https://github.com/StudioLambda/Query/commit/fbfda607291bb8a87cc35423f3ff8ad524d8fcb7))
10-
- Upgrade node version ([82a4651](https://github.com/StudioLambda/Query/commit/82a46511ddb956d14b540ab2d148db79db7e64c1))
11-
- **tests**: Revert to default reporter ([8f1f009](https://github.com/StudioLambda/Query/commit/8f1f00962208ba4b80d66ec7ee8e4ae69b477d61))
12-
- Disable no-shadow lint rule and remove dead code in query ([5cd9644](https://github.com/StudioLambda/Query/commit/5cd96441a7918a8c9e21eabe098efdc91d6f9aca))
14+
### 🐛 Bug Fixes
1315

14-
### Documentation
16+
- Remove unecesary dependency
17+
- Upgrade node version
18+
- _(tests)_ Revert to default reporter
19+
- Disable no-shadow lint rule and remove dead code in query
1520

16-
- Add comprehensive JSDoc documentation to all exported APIs ([89c9388](https://github.com/StudioLambda/Query/commit/89c93883641af4d45fdc5178c73d6a4e66a3e1ef))
21+
### 📚 Documentation
1722

18-
### Features
23+
- Add comprehensive JSDoc documentation to all exported APIs
1924

20-
- Improve tests ([e35d444](https://github.com/StudioLambda/Query/commit/e35d444b0b935d7c3539f3953ee7dbf650df82a2))
21-
- Remove memos ([25da77f](https://github.com/StudioLambda/Query/commit/25da77f1197d39d4165ced3536adb19de65b1b70))
22-
- **tests**: Github actions reporter ([663d5a1](https://github.com/StudioLambda/Query/commit/663d5a1ff0cb0a423e75edb516527f7ac5922cb6))
23-
- Add agent skill and improve readonly type safety ([341a4ac](https://github.com/StudioLambda/Query/commit/341a4aca79a66215a9d98bc74d283160aa65690f))
24-
- **react**: Use useEffectEvent for effect event handlers ([c650fbb](https://github.com/StudioLambda/Query/commit/c650fbb0becf0d1c34cb93b58cf296b9de2770b2))
25-
- **ci**: Add automated releases with git-cliff and npm trusted publishing ([5cea678](https://github.com/StudioLambda/Query/commit/5cea678958550248aca96ab43dc0a3633291eb09))
25+
### 🎨 Styling
2626

27-
### Miscellaneous
27+
- Format with oxfmt
2828

29-
- Migrate from eslint+prettier to oxlint+oxfmt ([fe975c8](https://github.com/StudioLambda/Query/commit/fe975c8cabd65f122dd7f614da86baa442456815))
30-
- Update all dev dependencies to latest versions ([ec990b9](https://github.com/StudioLambda/Query/commit/ec990b9f1ff096123558d2f479e7b8e4e77959d7))
29+
### ⚙️ Miscellaneous Tasks
3130

32-
### Styling
31+
- Migrate from eslint+prettier to oxlint+oxfmt
32+
- Bump version to 1.5.0
33+
- Update all dev dependencies to latest versions
3334

34-
- Format with oxfmt ([56fecdd](https://github.com/StudioLambda/Query/commit/56fecddf6d9612d3ac9d7a14f635b2bbc4c19558))
35+
## [1.4.0] - 2025-10-26
3536

36-
## [1.4.0](https://github.com/StudioLambda/Query/compare/v1.3.0...v1.4.0) - 2025-10-26
37+
### 🚀 Features
3738

38-
### Bug Fixes
39+
- Bump version to 1.3.0
40+
- Upgrade deps + fix linting errors
41+
- _(react)_ React compiler
42+
- Bump version to 1.4.0
43+
- Add .nvmrc file
3944

40-
- Ci node version ([1b47428](https://github.com/StudioLambda/Query/commit/1b474286791d1323d9a35e1a12b700e7f0acf39c))
41-
- Type imports ([b2ee694](https://github.com/StudioLambda/Query/commit/b2ee6947f769ce5ceb24b76e0bb3b2080e1c6d04))
42-
- Only build on ci ([aaf3d51](https://github.com/StudioLambda/Query/commit/aaf3d51d7c3cee21db1124f081c5179a08d8020c))
43-
- Format check on ci ([0011a70](https://github.com/StudioLambda/Query/commit/0011a7004080b7b5356dd798d52b1f6d7662e6ff))
44-
- Typo in ci ([138144a](https://github.com/StudioLambda/Query/commit/138144abf16417282b0ce21675b90d0ecaa8fe68))
45-
- Remove wildcard from ignore dist in eslint ([1b63b51](https://github.com/StudioLambda/Query/commit/1b63b51ad71f75d91d43270d2127149d576ee8d8))
46-
- Query on provider ([0446791](https://github.com/StudioLambda/Query/commit/044679162dee159d4cc09acb46e9045a1fdc10d0))
47-
- **react**: Preserve hooks and component names and fixes to broadcast channel ([556ade5](https://github.com/StudioLambda/Query/commit/556ade5188ce54e029bfb36d2a2ff7ddc23d65af))
45+
### 🐛 Bug Fixes
4846

49-
### Features
47+
- Ci node version
48+
- Type imports
49+
- Only build on ci
50+
- Format check on ci
51+
- Typo in ci
52+
- Remove wildcard from ignore dist in eslint
53+
- Query on provider
54+
- _(react)_ Preserve hooks and component names and fixes to broadcast channel
5055

51-
- Bump version to 1.3.0 ([0505a87](https://github.com/StudioLambda/Query/commit/0505a87d061c42a427836c1959784386b386fff2))
52-
- Upgrade deps + fix linting errors ([f0e2991](https://github.com/StudioLambda/Query/commit/f0e2991d5fa059bc90f90e38c6bf48071ad613a7))
53-
- **react**: React compiler ([0b09cf2](https://github.com/StudioLambda/Query/commit/0b09cf25e52b39b3b0db415b0f969f8e83224dd8))
54-
- Bump version to 1.4.0 ([038e849](https://github.com/StudioLambda/Query/commit/038e84961be09e234826fb682d928ad601f74e1a))
55-
- Add .nvmrc file ([2783b04](https://github.com/StudioLambda/Query/commit/2783b04ba52ef2ea01c46290cb9baae33f5d2995))
56+
### 💼 Other
5657

57-
### Miscellaneous
58+
- _(ci)_ Only build if pr to main
5859

59-
- **ci**: Rename ci jobs ([38d4426](https://github.com/StudioLambda/Query/commit/38d4426b3feac1459f236263932c27f28c0b89fd))
60-
- Rename prettier config file ([2a932bf](https://github.com/StudioLambda/Query/commit/2a932bf1fde323db3965d4240dae079dfdc62afa))
60+
### ⚙️ Miscellaneous Tasks
6161

62-
### Chose
62+
- _(ci)_ Rename ci jobs
63+
- Rename prettier config file
6364

64-
- **ci**: Only build if pr to main ([f94fb70](https://github.com/StudioLambda/Query/commit/f94fb7096685fa747afce08e6716c6f4518685bb))
65+
## [1.3.0] - 2025-09-09
6566

66-
## [1.3.0](https://github.com/StudioLambda/Query/compare/v1.2.0...v1.3.0) - 2025-09-09
67+
### 🚀 Features
6768

68-
### Bug Fixes
69+
- Bump deps
70+
- Added devEngines
71+
- Upgrade deps, fixes to snapshop and more tests
6972

70-
- Wrong name on test file ([c3edc44](https://github.com/StudioLambda/Query/commit/c3edc44426bd0ef75620f361dd457997dcd744b4))
73+
### 🐛 Bug Fixes
7174

72-
### Features
75+
- Wrong name on test file
7376

74-
- Bump deps ([0027d28](https://github.com/StudioLambda/Query/commit/0027d28d3641eda8d3a70f7632602f3046be382e))
75-
- Added devEngines ([60dc761](https://github.com/StudioLambda/Query/commit/60dc7611ffee38bcc573def9f1b63f8fba18c99c))
76-
- Upgrade deps, fixes to snapshop and more tests ([fd19ae0](https://github.com/StudioLambda/Query/commit/fd19ae04185f2a604f8a66272c9466f60e143a55))
77+
## [1.2.0] - 2025-02-22
7778

78-
## [1.2.0](https://github.com/StudioLambda/Query/compare/v1.1.1...v1.2.0) - 2025-02-22
79+
### 🚀 Features
7980

80-
### Bug Fixes
81+
- _(react)_ Prefetching + prefetch tags
82+
- _(package)_ Update dependencies
8183

82-
- **react**: Fix useQueryBasic's initial render ([aff497a](https://github.com/StudioLambda/Query/commit/aff497a8e4fbaa9630dc140da286ed6e5d6cd73d))
83-
- **react**: Export prefetch tags ([c60d1c7](https://github.com/StudioLambda/Query/commit/c60d1c748fb81f6388931100bd85be34b534af43))
84-
- **package**: Update lock ([0200ad3](https://github.com/StudioLambda/Query/commit/0200ad36a7547d038fb225f87b8d41a7ab721949))
84+
### 🐛 Bug Fixes
8585

86-
### Features
86+
- _(react)_ Fix useQueryBasic's initial render
87+
- _(react)_ Export prefetch tags
88+
- _(package)_ Update lock
8789

88-
- **react**: Prefetching + prefetch tags ([56e52f1](https://github.com/StudioLambda/Query/commit/56e52f1949b1c2e2aae286d0368bb4a590cc60ea))
89-
- **package**: Update dependencies ([108209d](https://github.com/StudioLambda/Query/commit/108209da2bf441704b0ab180fe176bb8f7bb064e))
90+
## [1.1.1] - 2025-02-15
9091

91-
## [1.1.1](https://github.com/StudioLambda/Query/compare/v1.1.0...v1.1.1) - 2025-02-15
92+
### 🚀 Features
9293

93-
### Bug Fixes
94+
- _(react)_ Add useQueryBasic hook + update dependencies
95+
- _(package)_ Update package version
9496

95-
- **react**: Simplified initial state ([7971518](https://github.com/StudioLambda/Query/commit/7971518887c473c8f897a86d8236eb840c91cec9))
97+
### 🐛 Bug Fixes
9698

97-
### Features
99+
- _(react)_ Simplified initial state
98100

99-
- **react**: Add useQueryBasic hook + update dependencies ([4ebbd59](https://github.com/StudioLambda/Query/commit/4ebbd595298254753f97c1379c899f3510920a0e))
100-
- **package**: Update package version ([6dfef0c](https://github.com/StudioLambda/Query/commit/6dfef0cf2542c1956d0f0b44f2e8c17fb3e36070))
101+
## [1.1.0] - 2025-01-27
101102

102-
## [1.1.0](https://github.com/StudioLambda/Query/compare/v1.0.0...v1.1.0) - 2025-01-27
103+
### 🚀 Features
103104

104-
### Bug Fixes
105+
- _(query)_ Separate types
106+
- _(ci)_ Add ci for tests
105107

106-
- **query,react**: Fixes to implementation ([8da1972](https://github.com/StudioLambda/Query/commit/8da1972c172dc49da4e232ced160022e6ad21efb))
107-
- **tests**: Remove ts expect err ([c936997](https://github.com/StudioLambda/Query/commit/c93699719236619951649e1537f799ccadd63316))
108-
- **tests**: React global act ([fd185a3](https://github.com/StudioLambda/Query/commit/fd185a38076a269514223feb48f83e29b0d2152c))
108+
### 🐛 Bug Fixes
109109

110-
### Features
110+
- _(query,react)_ Fixes to implementation
111+
- _(tests)_ Remove ts expect err
112+
- _(tests)_ React global act
111113

112-
- **query**: Separate types ([5fb48de](https://github.com/StudioLambda/Query/commit/5fb48ded5ef362f4a9438749c62548e71ba5cb92))
113-
- **ci**: Add ci for tests ([f963136](https://github.com/StudioLambda/Query/commit/f963136f616f601a9b14178b26ea99ded4c75a3a))
114+
## [1.0.0] - 2025-01-04
114115

115-
## [1.0.0](https://github.com/StudioLambda/Query/compare/...v1.0.0) - 2025-01-04
116+
### 🚀 Features
116117

117-
### Bug Fixes
118+
- Update bundling
119+
- New release
120+
- Snapshot
121+
- Caches + events
122+
- _(core)_ Refactor to lambda query
123+
- _(core)_ Add keywords
118124

119-
- **core**: Types ([f4c4c54](https://github.com/StudioLambda/Query/commit/f4c4c54ec8014754fb4b0ab9b83d261ba53acf8e))
120-
- **query**: Default generic type ([b33bf68](https://github.com/StudioLambda/Query/commit/b33bf680b0ef7241b4b308f864016285cc5b0568))
125+
### 🐛 Bug Fixes
121126

122-
### Features
123-
124-
- Update bundling ([c0a3a0b](https://github.com/StudioLambda/Query/commit/c0a3a0b169ed6462f56678d2a287d5700d124daa))
125-
- New release ([35bd927](https://github.com/StudioLambda/Query/commit/35bd92756e385163f1767938c33079ae3e621062))
126-
- Snapshot ([8333fed](https://github.com/StudioLambda/Query/commit/8333fed568c1d7706991e7519c0ac14ca0f30602))
127-
- Caches + events ([91cb43d](https://github.com/StudioLambda/Query/commit/91cb43db219aff8b8819de0012000b2df81d17aa))
128-
- **core**: Refactor to lambda query ([82582ea](https://github.com/StudioLambda/Query/commit/82582ea420acdf732c096180b5785e46acb025a4))
129-
- **core**: Add keywords ([4974ecb](https://github.com/StudioLambda/Query/commit/4974ecb7b9caa6d9783e6c9ad541466ecf5b4160))
130-
131-
### Miscellaneous
132-
133-
- Update spelling and fix typos ([b514a32](https://github.com/StudioLambda/Query/commit/b514a32abcd29318a8c5aa10731ee7ec8b339dfd))
127+
- _(core)_ Types
128+
- _(query)_ Default generic type
134129

130+
### ⚙️ Miscellaneous Tasks
135131

132+
- Update spelling and fix typos

cliff.toml

Lines changed: 2 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,8 @@
11
[changelog]
22
header = """
3-
# Changelog
4-
5-
All notable changes to this project will be documented in this file.
6-
3+
# Changelog\n
74
"""
8-
body = """
9-
{%- macro remote_url() -%}
10-
https://github.com/StudioLambda/Query
11-
{%- endmacro -%}
12-
13-
{% if version -%}
14-
## [{{ version | trim_start_matches(pat="v") }}]({{ self::remote_url() }}/compare/{{ previous.version }}...{{ version }}) - {{ timestamp | date(format="%Y-%m-%d") }}
15-
{% else -%}
16-
## [Unreleased]({{ self::remote_url() }}/compare/{{ previous.version }}...HEAD)
17-
{% endif -%}
18-
19-
{% for group, commits in commits | group_by(attribute="group") %}
20-
### {{ group | striptags | trim | upper_first }}
21-
{% for commit in commits %}
22-
- {% if commit.scope %}**{{ commit.scope }}**: {% endif %}{{ commit.message | upper_first }} ([{{ commit.id | truncate(length=7, end="") }}]({{ self::remote_url() }}/commit/{{ commit.id }}))
23-
{%- endfor %}
24-
{% endfor %}\n
25-
"""
26-
footer = ""
27-
trim = true
285

296
[git]
30-
conventional_commits = true
31-
filter_unconventional = true
32-
split_commits = false
33-
protect_breaking_commits = false
34-
filter_commits = false
357
tag_pattern = "v[0-9].*"
36-
skip_tags = ""
37-
ignore_tags = ""
38-
topo_order = false
39-
sort_commits = "oldest"
40-
41-
commit_parsers = [
42-
{ message = "^feat", group = "Features" },
43-
{ message = "^fix", group = "Bug Fixes" },
44-
{ message = "^perf", group = "Performance" },
45-
{ message = "^refactor", group = "Refactor" },
46-
{ message = "^docs", group = "Documentation" },
47-
{ message = "^style", group = "Styling" },
48-
{ message = "^test", group = "Testing" },
49-
{ message = "^chore\\(release\\)", skip = true },
50-
{ message = "bump version", skip = true },
51-
{ message = "^chore|^ci", group = "Miscellaneous" },
52-
{ body = ".*security", group = "Security" },
53-
]
54-
55-
commit_preprocessors = [
56-
{ pattern = "\\(#([0-9]+)\\)", replace = "([#${1}](https://github.com/StudioLambda/Query/pull/${1}))" },
57-
]
8+
filter_commits = true

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@
4747
"require": "./dist/query_react.cjs"
4848
}
4949
},
50+
"publishConfig": {
51+
"access": "public"
52+
},
5053
"scripts": {
5154
"build:only": "vite build",
5255
"build": "npm run build:only",
@@ -109,8 +112,5 @@
109112
},
110113
"engines": {
111114
"node": ">=18.0.0"
112-
},
113-
"publishConfig": {
114-
"access": "public"
115115
}
116116
}

0 commit comments

Comments
 (0)