From 09b9431a4b980b3c93564dbff8cbbb4bf1456c31 Mon Sep 17 00:00:00 2001 From: JimmyDaddy Date: Thu, 23 Jul 2026 08:30:49 +0800 Subject: [PATCH] chore(release): prepare 0.4.0 --- CHANGELOG.md | 19 +++++++++++++++++++ package.json | 2 +- scripts/test-native-fuzz.sh | 9 +++++++-- 3 files changed, 27 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1629f40..c38d993 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,25 @@ All notable changes to this project are documented in this file. Releases use [Semantic Versioning](https://semver.org/) and are generated from Conventional Commits by release-it. +## [0.4.0](https://github.com/JimmyDaddy/react-native-bs-diff-patch/compare/v0.3.0...v0.4.0) (2026-07-23) + +### Features + +- add cross-platform `inspectPatch()` and `verifyPatch()` APIs for inspecting + patch metadata and validating restored output byte-for-byte; +- add native runtime coverage for metadata, malformed patches, mismatches, and + resource limits across Android and iOS; +- add a bilingual browser-local Binary Patch Toolkit for creating, applying, + verifying, and inspecting patches without uploading files; +- add large-file native and Web benchmark baselines plus an evidence-backed + roadmap for progress and streaming feasibility; +- refresh the bilingual README, documentation site, favicon, and social preview. + +### Compatibility and validation + +- keep the native fuzz harness buildable on both Linux and macOS while + exercising the platform-specific atomic output path. + ## [0.3.0](https://github.com/JimmyDaddy/react-native-bs-diff-patch/compare/v0.2.0...v0.3.0) (2026-07-20) ### Features diff --git a/package.json b/package.json index d9748c1..dff441f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-bs-diff-patch", - "version": "0.3.0", + "version": "0.4.0", "description": "Create and apply compact binary patches across React Native Android, iOS, and Web", "main": "lib/commonjs/index", "module": "lib/module/index", diff --git a/scripts/test-native-fuzz.sh b/scripts/test-native-fuzz.sh index 04423ec..b1a0d31 100755 --- a/scripts/test-native-fuzz.sh +++ b/scripts/test-native-fuzz.sh @@ -6,6 +6,11 @@ repository_directory=$(CDPATH='' cd -- "$(dirname -- "$0")/.." && pwd) temporary_directory=$(mktemp -d) fuzz_runs="${FUZZ_RUNS:-5000}" compiler="${CC:-clang}" +feature_test_macro=-D_POSIX_C_SOURCE=200809L + +if [ "$(uname -s)" = "Darwin" ]; then + feature_test_macro=-D_DARWIN_C_SOURCE +fi cleanup() { rm -rf "$temporary_directory" @@ -14,7 +19,7 @@ trap cleanup EXIT INT TERM if "$compiler" \ -std=c11 \ - -D_POSIX_C_SOURCE=200809L \ + "$feature_test_macro" \ -g \ -O1 \ -fno-omit-frame-pointer \ @@ -37,7 +42,7 @@ if "$compiler" \ else "$compiler" \ -std=c11 \ - -D_POSIX_C_SOURCE=200809L \ + "$feature_test_macro" \ -g \ -O1 \ -fno-omit-frame-pointer \