Skip to content

Releases: zardoy/modify-json-file

v1.2.2

20 Nov 17:23
Compare
Choose a tag to compare

1.2.2 (2021-11-20)

Bug Fixes

  • hotfix preserve final newline (6e340ab)

v1.2.1

22 Sep 09:19
Compare
Choose a tag to compare

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 ifPropertyIsMissingForSetterandifFieldIsMissingtoifPropertyIsMissing

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

20 Jun 06:30
Compare
Choose a tag to compare

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

10 Jun 12:46
3716af0
Compare
Choose a tag to compare

1.0.1 (2021-06-10)

Bug Fixes

v1.0.0

10 Jun 12:42
Compare
Choose a tag to compare

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 modifyTsConfigJsontomodifyTsConfigJsonFile`

v0.0.2

09 Jun 14:35
642f56f
Compare
Choose a tag to compare

0.0.2 (2021-06-09)

Bug Fixes

  • fix package.json to proper publising (9d0e75c)

semantic-release setup

09 Jun 14:21
Compare
Choose a tag to compare
v0.0.1

initial version