Skip to content

Commit 860b57a

Browse files
committed
Merge branch 'release/next'
2 parents 73db667 + bdf96fd commit 860b57a

32 files changed

+3885
-338
lines changed

.changeset/config.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
"$schema": "https://unpkg.com/@changesets/config@2.3.1/schema.json",
33
"changelog": [
44
"@changesets/changelog-github",
5-
{ "repo": "addon-stack/storage" }
5+
{
6+
"repo": "addon-stack/storage"
7+
}
68
],
79
"commit": false,
810
"fixed": [],

.commitlintrc.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
{
2-
"extends": ["@commitlint/config-conventional"]
2+
"extends": [
3+
"@commitlint/config-conventional"
4+
]
35
}

.github/workflows/ci.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,17 @@ jobs:
2525
- name: Install dependencies
2626
run: npm ci
2727

28-
- name: Lint & format check (Biome)
29-
run: npm run check
28+
- name: Lint (Biome)
29+
run: npm run lint
30+
31+
- name: Format check (Biome)
32+
run: npm run format:check
3033

3134
- name: Typecheck
3235
run: npm run typecheck
3336

3437
- name: Test (Jest)
35-
run: npm run test:run
38+
run: npm run test:ci
3639

3740
- name: Build (rslib)
3841
run: npm run build
@@ -65,7 +68,7 @@ jobs:
6568
run: npm run typecheck
6669

6770
- name: Test (Jest)
68-
run: npm run test:run
71+
run: npm run test:ci
6972

7073
- name: Build (rslib)
7174
run: npm run build

.github/workflows/release-prepare.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Release Prepare
33
on:
44
push:
55
branches:
6-
- 'release/*'
6+
- "release/*"
77

88
permissions:
99
contents: write
@@ -56,10 +56,9 @@ jobs:
5656
env:
5757
HUSKY: 0
5858
with:
59-
commit_message: "chore: version packages (prepare release)"
59+
commit_message: "chore(release): version packages"
6060
commit_user_name: github-actions[bot]
6161
commit_user_email: 41898282+github-actions[bot]@users.noreply.github.com
6262
branch: ${{ github.ref_name }}
6363
create_branch: false
6464
push_options: --force-with-lease
65-

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# Dist
77
node_modules
88
dist/
9+
.rslib/
910
storybook-static
1011

1112
# IDE

.husky/pre-commit

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

33
# Husky pre-commit hook: format and run related tests on staged files
44

5-
npx lint-staged
5+
npx --no -- lint-staged

.husky/pre-push

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
# Husky pre-push hook: typecheck, run full tests, and build
44

55
npm run typecheck || exit 1
6-
npm run test:run || exit 1
6+
npm run test:ci || exit 1
77
npm run build || exit 1

.prettierrc

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

CHANGELOG.md

Lines changed: 55 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,35 @@
11
# @addon-core/storage
22

3+
## 0.2.0
4+
5+
### Minor Changes
6+
7+
- [`906ed65`](https://github.com/addon-stack/storage/commit/906ed6515c090427e81d86dd8c3e0d10d313fb8d) Thanks [@addon-stack](https://github.com/addon-stack)! - added storage providers and utilities:
8+
9+
- `Storage`, `SecureStorage`, `MonoStorage`
10+
- React hook `useStorage` for convenient use of storage in components
11+
- Factories `Storage.Local/Sync/Session`, namespace support, and `watch` for change subscriptions
12+
13+
#### Infrastructure and tooling
14+
15+
- migrate: switched to `Biome` for linting and code formatting
16+
- chore: updated `npm` scripts and configs for consistency and stability
17+
- chore: refined `lint-staged`, simplified pre-commit scripts
18+
- chore: mass auto-formatting and import ordering
19+
20+
#### CI/CD and releases
21+
22+
- chore: simplified release preparation — commit changes directly to the release branch
23+
- CI: current CI (type checks, tests, build, `npm pack --dry-run`) updated to match new scripts/linter
24+
25+
#### Reference commits
26+
27+
- feat: introduce Storage, SecureStorage, MonoStorage and useStorage hook — `4459fd5`
28+
- migrate to Biome — `2b4d1a3`
29+
- update scripts/configs — `8daee6b`
30+
- lint-staged/pre-commit tweaks — `4ed5053`, `5ad57ac`
31+
- simplify release workflow — `0365825`
32+
333
## 0.1.6
434

535
### Patch Changes
@@ -17,44 +47,46 @@
1747
### Patch Changes
1848

1949
- [`c997bd4`](https://github.com/addon-stack/storage/commit/c997bd48e3f5d01933c15a3c58c1835f430d277d) Thanks [@addon-stack](https://github.com/addon-stack)! - ### Improve release workflows for branch-based releases
20-
- Updated `release-publish.yml` to use `npm publish` with provenance and public access.
21-
- Enhanced token configurations for compatibility.
22-
- Modified `release-prepare.yml` to handle branch-based release preparation.
23-
- Added automatic branch creation and targeted PR updates for release branches.
50+
- Updated `release-publish.yml` to use `npm publish` with provenance and public access.
51+
- Enhanced token configurations for compatibility.
52+
- Modified `release-prepare.yml` to handle branch-based release preparation.
53+
- Added automatic branch creation and targeted PR updates for release branches.
2454

2555
## 0.1.3
2656

2757
### Patch Changes
2858

2959
- [`4018660`](https://github.com/addon-stack/storage/commit/40186609bdbe9933908060167b5f437b702ab8f9) Thanks [@addon-stack](https://github.com/addon-stack)! - Add MIT license to package and project files
30-
- Added `MIT` license to `package.json`.
31-
- Created `LICENSE.md` containing copyright and license details.
60+
- Added `MIT` license to `package.json`.
61+
- Created `LICENSE.md` containing copyright and license details.
3262

3363
## 0.1.2
3464

3565
### Patch Changes
3666

3767
- [`40c75eb`](https://github.com/addon-stack/storage/commit/40c75ebeaa8960e5d7f483a84ddae24b7a347f03) Thanks [@addon-stack](https://github.com/addon-stack)! - ### Configure workflows for release preparation and publishing
38-
- Added `release-prepare.yml` to automate versioning and changelog generation with Changesets.
39-
- Renamed and updated `release.yml` to `release-publish.yml` for npm publishing.
40-
- Enhanced `ci.yml` workflow with support for workflow calls.
41-
- Updated Changesets configuration and added `release` script in `package.json`.
68+
- Added `release-prepare.yml` to automate versioning and changelog generation with Changesets.
69+
- Renamed and updated `release.yml` to `release-publish.yml` for npm publishing.
70+
- Enhanced `ci.yml` workflow with support for workflow calls.
71+
- Updated Changesets configuration and added `release` script in `package.json`.
4272

4373
## 0.1.1
4474

4575
### Patch Changes
4676

4777
- [`120ca74`](https://github.com/addon-stack/storage/commit/120ca74dd515728179869a895d2b4e05686d6417) Thanks [@addon-stack](https://github.com/addon-stack)! - #### 0.1.1 — Patch (upcoming)
48-
- Added: CI workflow for automated releases via Changesets and npm publication.
49-
- Added: `commitlint` for commit message validation.
50-
- Style: Unified code formatting (double quotes, indentation).
51-
- Chore: Cleaned up unused dependencies and added `overrides` for `glob`.
52-
53-
#### 0.1.0 — Initial Release
54-
- Introduced package `@addon-core/storage` with CJS/ESM/types exports.
55-
- Build: Configured bundling with `@rslib/core` (`build`, `dev`).
56-
- Tooling: Set up TypeScript, `Biome`, `ESLint`, `Prettier`, `Jest`, `husky`, and `lint-staged`.
57-
- Scripts: `typecheck`, `test`, `test:run`, `test:related`.
58-
- CI: Added `ci.yml` to run `biome check`, `typecheck`, tests, build, and `npm pack --dry-run`; includes Node 18/20/22 matrix for `main` and PRs to `main`.
59-
- Releases: Added `release.yml` using `changesets/action@v1` for creating release PRs or publishing to npm (`npm publish --provenance --access public`).
60-
- Changesets: Added
78+
79+
- Added: CI workflow for automated releases via Changesets and npm publication.
80+
- Added: `commitlint` for commit message validation.
81+
- Style: Unified code formatting (double quotes, indentation).
82+
- Chore: Cleaned up unused dependencies and added `overrides` for `glob`.
83+
84+
#### 0.1.0 — Initial Release
85+
86+
- Introduced package `@addon-core/storage` with CJS/ESM/types exports.
87+
- Build: Configured bundling with `@rslib/core` (`build`, `dev`).
88+
- Tooling: Set up TypeScript, `Biome`, `ESLint`, `Prettier`, `Jest`, `husky`, and `lint-staged`.
89+
- Scripts: `typecheck`, `test`, `test:run`, `test:related`.
90+
- CI: Added `ci.yml` to run `biome check`, `typecheck`, tests, build, and `npm pack --dry-run`; includes Node 18/20/22 matrix for `main` and PRs to `main`.
91+
- Releases: Added `release.yml` using `changesets/action@v1` for creating release PRs or publishing to npm (`npm publish --provenance --access public`).
92+
- Changesets: Added

biome.json

Lines changed: 50 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,16 @@
33
"assist": {
44
"actions": {
55
"source": {
6-
"organizeImports": "on"
6+
"organizeImports": {
7+
"options": {
8+
"groups": [
9+
{
10+
"type": false
11+
}
12+
]
13+
},
14+
"level": "on"
15+
}
716
}
817
}
918
},
@@ -12,12 +21,35 @@
1221
"clientKind": "git",
1322
"useIgnoreFile": true
1423
},
24+
"files": {
25+
"includes": [
26+
"src/**/*.{ts,tsx,js,jsx}",
27+
"!src/**/*.test.{ts,tsx,js,jsx}",
28+
"**/*.{json,jsonc,md,mdx}",
29+
".changeset/**/*.{md,mdx}"
30+
]
31+
},
1532
"formatter": {
16-
"indentStyle": "space"
33+
"indentStyle": "space",
34+
"indentWidth": 4,
35+
"lineWidth": 120,
36+
"bracketSpacing": false
1737
},
1838
"javascript": {
1939
"formatter": {
20-
"quoteStyle": "single"
40+
"quoteStyle": "double",
41+
"semicolons": "always",
42+
"trailingCommas": "es5",
43+
"arrowParentheses": "asNeeded"
44+
}
45+
},
46+
"json": {
47+
"formatter": {
48+
"indentWidth": 2,
49+
"expand": "always"
50+
},
51+
"linter": {
52+
"enabled": false
2153
}
2254
},
2355
"css": {
@@ -28,7 +60,20 @@
2860
"linter": {
2961
"enabled": true,
3062
"rules": {
31-
"recommended": true
63+
"recommended": true,
64+
"suspicious": {
65+
"noExplicitAny": "off"
66+
}
67+
}
68+
},
69+
"overrides": [
70+
{
71+
"includes": [
72+
"src/providers/AbstractStorage.ts"
73+
],
74+
"linter": {
75+
"enabled": false
76+
}
3277
}
33-
}
78+
]
3479
}

0 commit comments

Comments
 (0)