Releases: birdofpreyru/react-native-static-server
Releases · birdofpreyru/react-native-static-server
v0.15.0
v0.14.0
- [#105] Update of dependencies, in particular Lighttpd v1.4.75 ⇒ v1.4.76
- [#106] Fixes graceful shutdown timeout — prior to this fix the Lighttpd server did not terminate upon reaching the graceful shutdown timeout (see Lighttpd's
server.graceful-shutdown-timeout
option).
v0.13.0
Breaking Changes
- iOS: Patched the way
stopInBackground
option (see constructor() docs) treats "inactive" app state (in which the app is not focused, but may continue to work as normal, unlike in the background). Before this change entering the inactive state was considered as entering the background, thus the server was stopped (ifstopInBackground
was opted-in), and it was only re-started when the app entered the active state. Now the inactive state is considered as the foreground, i.e. the server is stopped when entering any other state beside active and inactive, and it is re-started when entering either active or inactive state (transitions back-and-forth between active and inactive states have no effect on the server state).
Other Updates
- [#8] README: Added a link to Expo Example App by @jole141.
- Update of dependencies.
v0.12.0
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.