This repository was archived by the owner on Aug 22, 2024. It is now read-only.
Upgrade lint-staged: 10.5.4 → 12.3.5 (major) #212
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Here is everything you need to know about this upgrade. Please take a good look at what changed and the test results before merging this pull request.
What changed?
✳️ lint-staged (10.5.4 → 12.3.5) · Repo
Release Notes
Too many releases to show here. View the full release notes.
Commits
See the full diff on Github. The new version differs by 74 commits:
refactor: extract `parseGitZOutput` util
fix: search all configs regardless of staged files
fix: add `package.json` to exports (#1059)
fix: use config directory as cwd, when multiple configs present (#1091)
fix: handle symlinked .git directories
docs: fix README option list
fix(deps): update dependencies
feat: add `--cwd` option for overriding task directory
test: add retry to integration tests
test: add debug logging to `getConfigGroups`
fix: always search config from `cwd` first
fix: only throw if no configurations were found
refactor: replace "for...of" with "await Promise.all()"
refactor: replace "for...of" with "await Promise.all()"
fix: make console task titles more explicit
feat: support multiple configuration files
fix: resolve config modules with ESM createRequire (#1082)
fix: always run non-git tasks in the current working directory
fix: search configuration starting from explicit cwd option
fix: using `--debug` option enables debug mode
fix: use cwd option when resolving git repo root (#1075)
fix(deps): remove enquirer because it's now optional by listr2
chore(deps): update dependencies
ci: make dependabot also bump package.json
fix: improve error logging in loadConfig
fix: fix YAML config loading
fix: fix Windows JS config loading by using file:// URLs
fix: await for dynamic import promise when loading JS config
docs: update code examples from CommonJS to ESM syntax
chore: add error logging to `loadConfig`
feat: replace `cosmiconfig` with `lilconfig` + `yaml` to reduce dependencies
feat: allow loading `.js` config file with ESM syntax
refactor: extract `loadConfig` into separate file
feat: support loading `.mjs` config
test: make config loader tests more explicit
chore: remove unused files
docs: add note about v12 being ESM to README.md
fix: install `enquirer`
fix: remove `npm` version requirement (#1047)
fix: read version number from lint-staged package.json instead of package.json in cwd (#1043) (#1044)
feat: convert to native ESM module (#1038)
ci: add dependabot config
ci: adjust workflow names
ci: add CodeQL action
test: adjust tests for Windows compatibility
ci: run Windows tests with GitHub Actions instead of Appveyor
ci: make CI faster by separating ESLint and using node_modules cache
fix: revert back to `cosmiconfig` from `lilconfig` (#1035)
fix: correctly import `js-yaml` to fix yaml config loading (#1033)
perf: replace `cosmiconfig` with `lilconfig` (#981)
fix: unbreak windows by correctly normalizing cwd (#1029)
fix: remove dangling chars from git dir (#1028)
fix: detect git repo root correctly on cygwin (#1026)
feat(deps): update and slim down dependencies (#1003)
docs: Use /usr/bin/env sh instead of direct path (#1020)
docs: simplify Ignoring Files From .eslintignore. (#1013)
docs: fix incorrect folding (#1006)
fix: try to automatically fix and warn about invalid brace patterns (#992)
docs: simplify configuration example for formatting any format Prettier supports (#997)
fix: the shell option value should be optional instead of required (#996)
feat: allow a path to be supplied to the --shell option (#994)
fix: do not swallow already detected deprecated usage by last task (#991)
docs: Hardcode mrm@2 in the documentation (#976)
ci: remove Node.js 10 from Appveyor test matrix
feat: bump Node.js version requirement to 12.13.0
ci: replace Node.js 15 with 16
fix: migrate commander@7
fix: migrate husky@6
chore(deps): update dependencies
docs: corrects minor typos and grammar in README (#964)
docs: update installation and examples (#960)
Use simple-git-hooks in examples (#955)
docs: husky to simple-git-hooks migration in mrm (#954)
docs: Fix a bug in the prettier example (#949)
Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with
@depfu rebase
.All Depfu comment commands