Skip to content

Commit 932e8d9

Browse files
authored
fix(deps): update all dependencies (#93)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added new unit tests for release line and dependency changelog utilities. - Introduced new ESLint and Prettier configuration files. - **Bug Fixes** - Improved handling and formatting of release lines and dependency updates in changelogs. - **Chores** - Updated Node.js version requirement to 22. - Upgraded and cleaned up dependencies and scripts. - Simplified and modernized configuration files for workflows, linting, formatting, and editor settings. - **Refactor** - Streamlined and clarified function exports and typings for release line utilities. - **Tests** - Added new test suites and removed outdated tests for improved coverage and maintainability. - **Documentation** - Updated README and configuration examples for clarity. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent fd4a43f commit 932e8d9

30 files changed

+6349
-5158
lines changed

.changeset/major-pets-sink.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@mheob/changeset-changelog': patch
3+
---
4+
5+
update all dependencies

.eslintrc.cjs

Lines changed: 0 additions & 8 deletions
This file was deleted.

.github/codecov.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ codecov:
44
coverage:
55
precision: 2
66
round: down
7-
range: "80...100"
7+
range: 80...100
88

99
status:
1010
project:

.github/dependabot.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
version: 2
22
updates:
3-
- package-ecosystem: "github-actions"
4-
directory: "/"
3+
- package-ecosystem: github-actions
4+
directory: /
55
schedule:
6-
interval: "weekly"
7-
day: "friday"
6+
interval: weekly
7+
day: friday
88
time: "00:23"

.github/stale.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ daysUntilStale: 91
44
daysUntilClose: 77
55
# Issues with these labels will never be considered stale
66
exemptLabels:
7-
- "not stale"
8-
- "security"
7+
- not stale
8+
- security
99
# Label to use when marking an issue as stale
1010
staleLabel: stale
1111
# Comment to post when marking an issue as stale. Set to `false` to disable

.github/workflows/check.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,12 @@ jobs:
1414

1515
- name: Setup PNPM
1616
uses: pnpm/action-setup@v4
17-
with:
18-
version: latest
1917

2018
- name: Setup Node
2119
uses: actions/setup-node@v4
2220
with:
23-
node-version-file: ".nvmrc"
24-
cache: "pnpm"
21+
node-version-file: .nvmrc
22+
cache: pnpm
2523

2624
- name: Install Dependencies
2725
run: pnpm install --frozen-lockfile

.github/workflows/release.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
paths:
66
- ".changeset/**"
77
- "src/**"
8-
- "package.json"
8+
- package.json
99
branches:
1010
- main
1111

@@ -23,14 +23,12 @@ jobs:
2323

2424
- name: Setup PNPM
2525
uses: pnpm/action-setup@v4
26-
with:
27-
version: latest
2826

2927
- name: Setup Node
3028
uses: actions/setup-node@v4
3129
with:
32-
node-version-file: ".nvmrc"
33-
cache: "pnpm"
30+
node-version-file: .nvmrc
31+
cache: pnpm
3432

3533
- name: Install Dependencies
3634
run: pnpm install --frozen-lockfile

.husky/commit-msg

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#!/usr/bin/env sh
2-
. "$(dirname -- "$0")/_/husky.sh"
1+
[ -n "$CI" ] && exit 0
32

43
pnpm exec commitlint --edit "$1"

.husky/post-merge

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#!/usr/bin/env sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
41
[ -n "$CI" ] && exit 0
52

63
changedFiles="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)"

.husky/pre-commit

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#!/usr/bin/env sh
2-
. "$(dirname -- "$0")/_/husky.sh"
3-
41
[ -n "$CI" ] && exit 0
52

63
pnpm exec lint-staged

.husky/pre-push

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#!/usr/bin/env sh
2-
. "$(dirname -- "$0")/_/husky.sh"
3-
41
[ -n "$CI" ] && exit 0
52

63
npx use-correct-pm

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20
1+
22

.prettierignore

Lines changed: 0 additions & 6 deletions
This file was deleted.

.prettierrc.cjs

Lines changed: 0 additions & 4 deletions
This file was deleted.

.vscode/settings.json

Lines changed: 51 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,53 @@
11
{
2-
"typescript.tsdk": "node_modules/typescript/lib"
2+
"typescript.tsdk": "node_modules/typescript/lib",
3+
4+
// Disable the default formatter, use eslint instead
5+
"prettier.enable": false,
6+
"editor.formatOnSave": false,
7+
8+
// Auto fix
9+
"editor.codeActionsOnSave": {
10+
"source.fixAll.eslint": "explicit",
11+
"source.organizeImports": "never"
12+
},
13+
14+
// Silent the stylistic rules in you IDE, but still auto fix them
15+
"eslint.rules.customizations": [
16+
{ "rule": "style/*", "severity": "off", "fixable": true },
17+
{ "rule": "format/*", "severity": "off", "fixable": true },
18+
{ "rule": "*-indent", "severity": "off", "fixable": true },
19+
{ "rule": "*-spacing", "severity": "off", "fixable": true },
20+
{ "rule": "*-spaces", "severity": "off", "fixable": true },
21+
{ "rule": "*-order", "severity": "off", "fixable": true },
22+
{ "rule": "*-dangle", "severity": "off", "fixable": true },
23+
{ "rule": "*-newline", "severity": "off", "fixable": true },
24+
{ "rule": "*quotes", "severity": "off", "fixable": true },
25+
{ "rule": "*semi", "severity": "off", "fixable": true }
26+
],
27+
28+
// Enable eslint for all supported languages
29+
"eslint.validate": [
30+
"javascript",
31+
"javascriptreact",
32+
"typescript",
33+
"typescriptreact",
34+
"vue",
35+
"html",
36+
"markdown",
37+
"json",
38+
"json5",
39+
"jsonc",
40+
"yaml",
41+
"toml",
42+
"xml",
43+
"gql",
44+
"graphql",
45+
"astro",
46+
"svelte",
47+
"css",
48+
"less",
49+
"scss",
50+
"pcss",
51+
"postcss"
52+
]
353
}

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ pnpm add -D @mheob/changeset-changelog
3434
Set in your `.changeset/config.json` file the following snippet:
3535

3636
```jsonc
37-
"changelog": ["@mheob/changeset-changelog", { "repo": "YOUR_ORG_OR_USER/YOUR_REPO" }]
37+
{
38+
"changelog": ["@mheob/changeset-changelog", { "repo": "YOUR_ORG_OR_USER/YOUR_REPO" }],
39+
}
3840
```
3941

4042
### Output

.commitlintrc.cjs renamed to commitlint.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
const defaultConfig = require('@mheob/commitlint-config');
1+
import defaultConfig from '@mheob/commitlint-config';
22

33
/** @type {import('cz-git').UserConfig} */
4-
module.exports = {
4+
export default {
55
...defaultConfig,
66
prompt: {
77
...defaultConfig.prompt,

eslint.config.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import defaultConfig from '@mheob/eslint-config';
2+
3+
export default defaultConfig({});

package.json

Lines changed: 37 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,11 @@
2828
"dist"
2929
],
3030
"scripts": {
31-
"build": "tsup",
31+
"build": "tsdown",
3232
"changeset": "changeset",
33-
"dev": "tsup --watch",
34-
"format": "prettier --write \"**/*.{cjs,js,mjs,ts,json,md,mdx,yaml,yml}\"",
35-
"lint": "eslint . --ext .cjs,.js,.mjs,.ts --fix --ignore-path .gitignore",
36-
"prepare": "ts-node ./scripts/prepare.ts",
33+
"dev": "tsdown --watch",
34+
"lint": "eslint . --fix",
35+
"prepare": "tsx ./scripts/prepare.ts",
3736
"release": "changeset publish",
3837
"test": "vitest",
3938
"test:cov": "vitest run --coverage",
@@ -48,31 +47,42 @@
4847
},
4948
"dependencies": {
5049
"@changesets/get-github-info": "^0.6.0",
51-
"@changesets/types": "^6.0.0",
52-
"dotenv": "^16.4.1"
50+
"@changesets/types": "^6.1.0",
51+
"dotenv": "^16.5.0"
5352
},
5453
"devDependencies": {
55-
"@changesets/cli": "^2.27.1",
56-
"@changesets/parse": "^0.4.0",
57-
"@commitlint/cli": "^19.0.0",
58-
"@mheob/commitlint-config": "^1.1.1",
59-
"@mheob/eslint-config": "^5.2.0",
60-
"@mheob/prettier-config": "^3.2.0",
61-
"@mheob/tsconfig": "^2.0.0",
62-
"@types/node": "^20.11.16",
63-
"@vitest/coverage-istanbul": "^1.2.2",
64-
"commitizen": "^4.3.0",
65-
"cz-git": "^1.8.0",
66-
"eslint": "^8.56.0",
67-
"husky": "^8.0.3",
68-
"lint-staged": "^15.2.2",
69-
"ts-node": "^10.9.2",
70-
"tsup": "^8.0.1",
71-
"typescript": "^5.3.3",
72-
"vite": "^5.0.12",
73-
"vitest": "^1.2.2"
54+
"@changesets/cli": "^2.29.4",
55+
"@changesets/parse": "^0.4.1",
56+
"@commitlint/cli": "^19.8.1",
57+
"@mheob/commitlint-config": "^1.2.2",
58+
"@mheob/eslint-config": "^8.8.3",
59+
"@mheob/prettier-config": "^3.3.3",
60+
"@mheob/tsconfig": "^2.2.1",
61+
"@types/node": "^22.15.23",
62+
"@vitest/coverage-v8": "^3.1.4",
63+
"commitizen": "^4.3.1",
64+
"cz-git": "^1.11.1",
65+
"eslint": "^9.27.0",
66+
"husky": "^9.1.7",
67+
"lint-staged": "^16.1.0",
68+
"prettier": "^3.5.3",
69+
"tsdown": "^0.12.4",
70+
"tsx": "^4.19.4",
71+
"typescript": "^5.8.3",
72+
"vite": "^6.3.5",
73+
"vitest": "^3.1.4"
7474
},
75-
"tsup": {
75+
"packageManager": "[email protected]",
76+
"engines": {
77+
"node": ">=22"
78+
},
79+
"pnpm": {
80+
"onlyBuiltDependencies": [
81+
"esbuild",
82+
"unrs-resolver"
83+
]
84+
},
85+
"tsdown": {
7686
"clean": true,
7787
"entry": [
7888
"src/index.ts"

0 commit comments

Comments
 (0)