Releases: birdofpreyru/react-native-static-server
Releases · birdofpreyru/react-native-static-server
v0.11.0
v0.10.5
Important
- Deprecates extractBundledAssets() — instead use copyFileAssets() from the @dr.pogodin/react-native-fs library v2.24.1 and above, which is implemented in a more efficient way. The original extractBundledAssets() is still preserved in this library for backward compatibility; but it will be removed in future.
Misc
- [#98] Improves an error message.
v0.10.4
v0.10.3
- [#97] Patches the "Stop in background" feature (see the
stopInBackground
option of Sever.constructor()) to avoid unhandled promise rejections if server crashes during such auto-stop (auto-restart), and there are state listeners connected to the server (we assume they are handling such errors). It still leaves such promise rejections unhandled if no state listeners are connected (e.g. that allows optional instrumentation, like Sentry, to detect and report these unhandled rejections, attracting attention to possible issues with the host app). - Updates dependencies.
v0.10.2
v0.10.1
- [#95] Implements a way for «Connecting to an Active Server in the Native Layer», thus allowing to reuse an active native server across JS engine restarts without terminating and re-creating the native server from scratch.
- Updates dependencies.
v0.10.0
- [#91] Upgrade to RN v0.73. In particular:
- Native Android code has been migrated from Java to Kotlin.
- Example App setup now requires Yarn to run.
- Support of RN's New Architecture on iOS has not been tested because of react-native-webview failing to build with RN v0.73 for new arch on iOS (see #94 and react-native-webview/react-native-webview#3263). For similar reason support of RN's New Arch on macOS (Catalyst) has not been tested since v0.8.2 of this library (see #61 and react-native-webview/react-native-webview#3089).
v0.9.2
- [#88] mod_rewrite support.
- [#84] iOS: Fixes library build in project configurations named differently from «Debug» or «Release».
- [#74] README improvement.
- Updates dependencies.
v0.9.1
v0.9.0
- [#13][#72] Adds
extraConfig
option to Server constructor() — it allows to add arbitrary additional Lighttpd configuration to the base one generated by the library. - [#73] iOS: Corrects the declared minimal target platform version to match that declared by RN.
- [#75] Upraded to Lighttpd v1.4.72 (changelog).
- Removes MIME type definitions for file extensions from the base config generated by the library, and thus it now relies on the default MIME type definitions by Lighttpd (see here). There are some differences from the removed definitions, if it is a problem, you can use the new
extraConfig
option to specify MIME types explicitly. - Inits Lighttpd's mod_alias during the build, thus allowing to use it in the config (see Enabling Alias Module).
- Deprecates
webdav
option of Server constructor() — if necessary, useextraConfig
to configure WebDAV (see Enabling WebDAV module).