Releases: mongodb/stitch-js-sdk
Release 4.9.0
This release introduces experimental support for watch
on RemoteMongoCollection
in React Native.
Thanks to changes made recently in React Native 0.62, networking primitives were exposed to make it possible to open an EventSource
-based HTTP stream in React Native in a mobile-friendly way. See this thread and this PR for the work that went into making this possible. Big thanks to the React Native team for making this happen.
Right now, this will only work in the release candidate for React Native 0.62, so we are releasing this feature as an experimental pre-release feature.
If you'd like to try using watch
in your Stitch apps, you can download this version of the SDK by:
npm install --save [email protected]
npm install --save mongodb-stitch-react-native-sdk@next
Note that you must specify the version or the next
tag, otherwise you will get the version of the SDK that does not support watch
in React Native.
Release 4.8.0
Release 4.7.0
- Add Custom Function authentication auth provider
- Add custom reset password function to UserPass auth provider
Release 4.5.0
- Adds support for additional options for
watch
inRemoteMongoCollection
.- Watch for events on all documents.
- Watch for all events matching a provided
$match
filter.
Release 4.4.1
- Fixes a bug where
StitchAuthListener
would not get aUserLoggedIn
event on OAuth redirect logins.
Release 4.4.0
- Adds support for "compact"
watch
streams via the Remote MongoDB service, which can save on network usage when working with watch streams. - Fixes a bug where anonymous login sometimes failed due to an anonymous user already existing in storage.
- Fixes a bug where issuing a request when logged out would cause a
Promise
to never be rejected. - Various internal improvements to the Stitch Admin SDK.
- Various internal improvements to release process.
- Various internal improvements to API documentation.
Release 4.3.2
- Properly closes watch streams when active user switches
- Fixes authentication issue when using React Native
- Fixes missing
Buffer
library issue in Angular applications
Release 4.3.1
- Adds support for
findOne()
,findOneAndUpdate()
,findOneAndReplace()
, andfindOneAndDelete()
onRemoteMongoCollection
. - Fixes a bug where logging into an anonymous user would sometimes fail with an unhandled promise rejection.
- Prevents users from calling
logoutUser()
andremoveUser()
with an argument inStitchAuth
, to avoid accidentally logging out or deleting the active user when they meant to log out or delete another user. - Adds a copy-to-clipboard button in the code snippets in the generated documentation.
- Fixes various linter errors in the codebase.
Release 4.3.0
- Adds support for multiple logged-in users. You can now log into multiple users on a single device, switch between them, and maintain profile information for logged out users. See the docs for StitchAuth for information about the new functionality.
- Revamps the
StitchAuthListener
interface, which now provides contextual information about auth events as they occur on the Stitch client. See the docs for StitchAuthListener for more information. - Adds
isLoggedIn
andlastAuthActivity
field to theStitchUser
interface,isLoggedIn
is a boolean indicating whether a user is currently logged in (and can thus be switched to).lastAuthActivity
is aDate
indicating the last time the user was logged in, logged out, switched to, or switched from.
- Made various cosmetic improvements to the generated TypeDoc API documentation, and added code examples to many pages.
- Removes
cross-fetch
as a dependency frommongodb-stitch-core-sdk
, and provided a platform-specificfetch
transport for each platform SDK and aJestFetchTransport
for test modules. This is to solve issues where some applications could not be built withnode-fetch
as a dependency. (See #207)
Release 4.2.0
- Adds a new
watch
method onRemoteMongoCollection
for the browser SDK and Node.js SDK.watch
provides the ability to open a change stream against a collection to get real-time updates about changes that happen on specific documents.- This feature is not supported on React Native due to a lack of mature support for server-event events on that platform. If you’d like real-time updates in a React Native application, we recommend building a native module using our iOS and Android SDKs, which offer beta functionality for MongoDB Mobile Sync, and will soon offer similar
watch
functionality
- This feature is not supported on React Native due to a lack of mature support for server-event events on that platform. If you’d like real-time updates in a React Native application, we recommend building a native module using our iOS and Android SDKs, which offer beta functionality for MongoDB Mobile Sync, and will soon offer similar
- Improved README files
- Fixed various internal issues