Releases: balena-io-modules/ui-shared-components
v14.0.2
v14.0.1
v14.0.0
v13.0.0
8f20b28 (Rename Widget extraContext to resource, 2025-05-08)
5d38465 (Mark Widget resource as required, 2025-05-08)
74b8145 (widgetFactory: Move uiOptions to last parameter and make it optional, 2025-05-15)
e51c7ac (Drop deprecated interface OsSpecificDeviceTypeJsonInstructions, 2025-05-16)
45c7216 (Drop deprecated interface DeviceTypeOptions, 2025-05-16)
c0622e2 (Drop rjstGetModelForCollection in favor of rjstGetModelForCollection2, 2025-05-27)
2bb56b8 (Rename rjstGetModelForCollection2 to rjstGetModelForCollection, 2025-05-27)
v12.5.2
v12.5.1
v12.5.0
v12.4.4
v12.4.3
v12.4.2
Update dependency lint-staged to v16
Notable changes
- #1546
158d15cThanks @iiroj! - Processes are spawned using nano-spawn instead of execa. If you are using Node.js scripts as tasks, you might need to explicitly run them withnode, especially when using Windows: - #1546
158d15cThanks @iiroj! - The--shellflag has been removed and lint-staged no longer supports evaluating commands directly via a shell. To migrate existing commands, you can create a shell script and invoke it instead. Lint-staged will pass matched staged files as a list of arguments, accessible via"$@​": - #1544
5561321Thanks @YimingIsCOLD! - Correctly handle colon (:) characters in staged filenames. - #1533
5d53534Thanks @iiroj! - Improve listing of staged files so that lint-staged doesn't crash when encountering an uninitialized submodule. This should result in less errors like: - #1526
630af5fThanks @iiroj! - Lint-staged no longer resets to the original state when preventing an empty git commit. This happens when your configured tasks reset all the staged changes, typically when trying to commit formatting changes which conflict with your linter setup like ESLint or Prettier. - #1512
cbfed1dThanks @tarik02! - Adjust TypeScript types for the default export so that it can be used as a value without error TS2693. - #1509
8827ebfThanks @iiroj! - Change lint-staged's dependencies to use caret (^) ranges instead of tilde (~). This makes it easier for package managers to perform dependency management when minor-level updates are also permitted instead of just patch-level. - #1504
1c7a45eThanks @iiroj! - Default TypeScript config filenames match JS equivalents. - #1504
9cc18c9Thanks @iiroj! - Add missing conditional exports syntax for TypeScript types. - #1500
a8ec1ddThanks @iiroj! - Lint-staged now provides TypeScript types for the configuration and main Node.js API. You can use the JSDoc syntax in your JS configuration files: - #1501
9b79364Thanks @iiroj! - Handle possible failures when logging user shell for debug info. - #1495
e69da9eThanks @iiroj! - Added more info to the debug logs so that "environment" info doesn't need to be added separately to GitHub issues. - #1493
fa0fe98Thanks @iiroj! - Added more help messages around the automaticgit stashthat lint-staged creates as a backup (by default). The console output also displays the short git hash of the stash so that it's easier to recover lost files in case some fatal errors are encountered, or the process is killed before completing. - #1484
bcfe309Thanks @wormsik! - Escape paths containing spaces when using the "shell" option. - #1487
7dd8caaThanks @iiroj! - Do not treat submodule root paths as "staged files". This caused lint-staged to fail to a Git error when only updating the revision of a submodule.
lint-staged/lint-staged (lint-staged)
v16.0.0
Major Changes
-
#1546
158d15cThanks @iiroj! - Processes are spawned using nano-spawn instead of execa. If you are using Node.js scripts as tasks, you might need to explicitly run them withnode, especially when using Windows:{ "*.js": "node my-js-linter.js" } -
#1546
158d15cThanks @iiroj! - The--shellflag has been removed and lint-staged no longer supports evaluating commands directly via a shell. To migrate existing commands, you can create a shell script and invoke it instead. Lint-staged will pass matched staged files as a list of arguments, accessible via"$@​":
v15.5.2
Patch Changes
- #1544
5561321Thanks @YimingIsCOLD! - Correctly handle colon (:) characters in staged filenames.
v15.5.1
Patch Changes
-
#1533
5d53534Thanks @iiroj! - Improve listing of staged files so that lint-staged doesn't crash when encountering an uninitialized submodule. This should result in less errors like:✖ Failed to get staged files!
v15.5.0
Minor Changes
- #1526
630af5fThanks @iiroj! - Lint-staged no longer resets to the original state when preventing an empty git commit. This happens when your configured tasks reset all the staged changes, typically when trying to commit formatting changes which conflict with your linter setup like ESLint or Prettier.
Example with Prettier
By default Prettier prefers double quotes.
##...