Releases: fbluemle/rn-version-sync
Releases · fbluemle/rn-version-sync
Release list
0.8.0
Behavior changes
- The bare command no longer writes. It compares the native files with
package.jsonand exits 1 when a platform is outdated. Pass--writeto update, and changenpm versionhooks torn-version-sync --write. - The output is one table showing what each file says, with a
jsrow forpackage.json. A missing native file gets anot foundrow instead of a warning on stderr. --dry-runand--verboseare removed.--writenow fails when the app id cannot be resolved (Android flavors with their ownapplicationId, variable bundle identifiers), since both modes read it for the table.- Project settings can be stored under an
"rn-version-sync"key inpackage.json:reserveBuilds,gradlePath,pbxprojPath,configuration,skipAndroid,skipIos. Command line options take precedence. - Library:
checkVersionsis new.syncVersionsreturns per-platform status with anupdatedflag pluspackageName,packageVersion,overriddenandmissing, instead of file paths. The updaters lose theirverboseparameter. All functions apply thepackage.jsonconfiguration, andloadConfigandProjectConfigare exported.
What's Changed
- Make the bare command a check and require --write by @friederbluemle in #28
- Read project settings from package.json by @friederbluemle in #29
Full Changelog: v0.7.0...v0.8.0
0.7.0
Behavior changes
- Missing native files warn instead of being skipped silently; the sync fails when nothing was written. Use
--skip-android/--skip-iosfor single-platform projects. --version-codeand--reserve-buildsmust be integers; the version code must be positive.- Relative
--gradle-path/--pbxproj-pathresolve against--project-dir. - iOS values are read from the application target's build configuration (
--configuration, defaultRelease), no longer from the first match in the file. syncVersionsreturns the synced file paths.
What's Changed
- Comment on released PRs when creating a release by @friederbluemle in #23
- Fail on missing native files and clean up the CLI by @friederbluemle in #24
- Add CLI tests and run the build in CI by @friederbluemle in #25
- Resolve path options against the project directory by @friederbluemle in #26
- Settle iOS read and write semantics by @friederbluemle in #27
Full Changelog: v0.6.0...v0.7.0
0.6.0
What's Changed
- Add --print and --format options by @friederbluemle in #22
Full Changelog: v0.5.0...v0.6.0
0.5.0
What's Changed
- Update dev dependencies and raise Node.js floor by @friederbluemle in #18
- Update commander to 14 by @friederbluemle in #19
- Add Biome linter and formatter by @friederbluemle in #16
- Add --print-env option by @friederbluemle in #20
- Drop registry-url from the publish workflow by @friederbluemle in #21
Full Changelog: v0.4.1...v0.5.0
0.4.1
What's Changed
- Fix TypeScript error and run type checks in CI by @friederbluemle in #17
Full Changelog: v0.4.0...v0.4.1
0.4.0
0.3.0
What's Changed
- Remove Node.js 20 from CI by @friederbluemle in #13
- Add --print-version-code (and -name) options by @friederbluemle in #14
Full Changelog: v0.2.0...v0.3.0
0.2.0
What's Changed
- Upgrade and expand test suite by @friederbluemle in #10
- Add additional command line options by @friederbluemle in #11
- Update publish.yml by @friederbluemle in #12
Full Changelog: v0.1.3...v0.2.0
0.1.3
What's Changed
- Lower acceptable commander versions to ^12.0.0 by @friederbluemle in #9
Full Changelog: v0.1.2...v0.1.3
0.1.2
What's Changed
- Use safer git add command in version script by @friederbluemle in #7
Full Changelog: v0.1.1...v0.1.2