Releases: zardoy/modify-json-file
Releases · zardoy/modify-json-file
v1.2.2
1.2.2 (2021-11-20)
Bug Fixes
- hotfix preserve final newline (6e340ab)
v1.2.1
Bug Fixes
- helpers: make deep props optional (764a561)
- Disallow passing object is argument when json content is
null
Features
- helpers Add ability to specify
{ dir: string }
as path
- Expose
Options
type
- Rename
ifFieldIsMissingForSetter
to ifPropertyIsMissingForSetter
andifFieldIsMissing
toifPropertyIsMissing
Note: Old properties are preserved and deprecated for compatibility.
- Add
removeJsonc
option to remove comments and trailing commas from modifying JSON (#1)
v1.1.0
1.1.0 (2021-06-20)
Bug Fixes
- 💪 more strict generic type restriction (bc57655)
- ensure that supported node.js version is used (b863b07)
- fix
Options
type. now don't need to specify all options (f6c2f86)
Features
- allow to "modify" non object JSON files. (eb099e4)
v1.0.1
1.0.1 (2021-06-10)
Bug Fixes
v1.0.0
1.0.0 (2021-06-10)
Bug Fixes
dont read file twice
, use graceful-fs, fix return type for field setter (c80a1fa)
Features
- async callback for modifying JSON (c7e6591)
- rename shortcuts (a05ca24)
BREAKING CHANGES
- rename
modifyPackageJson
to modifyPackageJsonFile
. Rename modifyTsConfigJsonto
modifyTsConfigJsonFile`
v0.0.2
0.0.2 (2021-06-09)
Bug Fixes
- fix package.json to proper publising (9d0e75c)