Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/orange-places-guess.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@hirasso/restore-scroll": patch
---

Return a boolean from `restoreScroll()` indicating success / failure
5 changes: 5 additions & 0 deletions .changeset/stale-carrots-shop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@hirasso/restore-scroll": major
---

Switch to [`@medv/finder`](https://github.com/antonmedv/finder) for the automatic selector generation
5 changes: 5 additions & 0 deletions .changeset/tangy-parrots-fall.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@hirasso/restore-scroll": patch
---

Update dev dependencies and tooling
5 changes: 5 additions & 0 deletions .changeset/ten-flowers-read.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@hirasso/restore-scroll": patch
---

Updated dependencies
9 changes: 2 additions & 7 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,10 @@

root = true

[*.{js,php}]
[*.{js,ts,css}]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space

[*.{js,scss,css}]
indent_size = 2

[*.php]
indent_size = 4
indent_size = 2
2 changes: 1 addition & 1 deletion .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
uses: pnpm/action-setup@v3 # @see https://stackoverflow.com/a/74885077/586823

- name: Install dependencies
run: pnpm i
run: pnpm install --frozen-lockfile

- name: Install Playwright Browsers
run: pnpm run test:e2e:install
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ jobs:
uses: pnpm/action-setup@v3 # @see https://stackoverflow.com/a/74885077/586823

- name: Install dependencies
run: pnpm i
run: pnpm install --frozen-lockfile

- name: Analyse
run: pnpm run analyse

- name: Build
run: pnpm run build

- name: Typecheck
run: pnpm run typecheck

- name: Run tests
run: pnpm run test:unit
3 changes: 0 additions & 3 deletions .lintstagedrc.js

This file was deleted.

10 changes: 10 additions & 0 deletions .lintstagedrc.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
export default {
"**/*.{ts}": [
"prettier --write",
/**
* Fixes an issue where lint-staged ignores tsconfig.json when it called through husky hooks
* @see https://github.com/lint-staged/lint-staged/issues/825#issuecomment-620018284
*/
() => "pnpm run analyse",
],
};
28 changes: 17 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,30 +44,36 @@
"test:e2e": "pnpm exec playwright test --config ./tests/e2e/config.playwright.ts",
"test:e2e:dev": "PLAYWRIGHT_ENV=dev pnpm run test:e2e --ui",
"test:e2e:install": "pnpm exec playwright install --with-deps",
"typecheck": "tsc --noEmit"
"analyse": "tsc --noEmit --module nodenext"
},
"devDependencies": {
"@changesets/cli": "^2.28.1",
"@playwright/test": "^1.54.1",
"@changesets/cli": "^2.29.8",
"@playwright/test": "^1.57.0",
"@swup/fade-theme": "^2.0.2",
"@tailwindcss/vite": "^4.1.11",
"astro": "^4.15.9",
"@tailwindcss/vite": "^4.1.18",
"@types/node": "^25.0.3",
"astro": "^5.16.6",
"astro-feather": "^1.0.0",
"css.escape": "^1.5.1",
"feather-icons": "^4.29.2",
"happy-dom": "^20.0.11",
"husky": "^9.1.7",
"lint-staged": "^16.1.2",
"prettier": "^3.3.3",
"lint-staged": "^16.2.7",
"prettier": "^3.7.4",
"swup": "^4.8.2",
"swup-morph-plugin": "^1.3.0",
"tailwindcss": "^4.1.11",
"tsdown": "^0.13.4",
"typescript": "^5.6.2",
"vitest": "^2.1.1"
"tailwindcss": "^4.1.18",
"tsdown": "^0.18.4",
"typescript": "^5.9.3",
"vitest": "^4.0.16"
},
"devEngines": {
"packageManager": {
"name": "pnpm",
"onFail": "warn"
}
},
"dependencies": {
"@medv/finder": "^4.0.2"
}
}
Loading
Loading