Skip to content

Releases: mongodb/stitch-js-sdk

Release 4.9.0

31 Jan 15:50
d09b65d
Compare
Choose a tag to compare
Release 4.9.0 Pre-release
Pre-release

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

06 Jan 14:23
bd07a3d
Compare
Choose a tag to compare
  • Add customData to user object
  • Add ability to refresh customData to StitchAuth

Release 4.7.0

06 Nov 17:20
070b17b
Compare
Choose a tag to compare
  • Add Custom Function authentication auth provider
  • Add custom reset password function to UserPass auth provider

Release 4.5.0

15 Jul 07:56
a4a4a78
Compare
Choose a tag to compare
  • Adds support for additional options for watch in RemoteMongoCollection.
    • Watch for events on all documents.
    • Watch for all events matching a provided $match filter.

Release 4.4.1

11 Jun 22:21
361eedb
Compare
Choose a tag to compare
  • Fixes a bug where StitchAuthListener would not get a UserLoggedIn event on OAuth redirect logins.

Release 4.4.0

16 May 22:10
d5fea6f
Compare
Choose a tag to compare
  • 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

22 Mar 15:31
Compare
Choose a tag to compare
  • 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

05 Mar 18:55
Compare
Choose a tag to compare
  • Adds support for findOne(), findOneAndUpdate(), findOneAndReplace(), and findOneAndDelete() on RemoteMongoCollection.
  • Fixes a bug where logging into an anonymous user would sometimes fail with an unhandled promise rejection.
  • Prevents users from calling logoutUser() and removeUser() with an argument in StitchAuth, 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

15 Feb 21:58
Compare
Choose a tag to compare
  • 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 and lastAuthActivity field to the StitchUser interface,
    • isLoggedIn is a boolean indicating whether a user is currently logged in (and can thus be switched to).
    • lastAuthActivity is a Date 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 from mongodb-stitch-core-sdk, and provided a platform-specific fetch transport for each platform SDK and a JestFetchTransport for test modules. This is to solve issues where some applications could not be built with node-fetch as a dependency. (See #207)

Release 4.2.0

29 Jan 20:06
Compare
Choose a tag to compare
  • Adds a new watch method on RemoteMongoCollection 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
  • Improved README files
  • Fixed various internal issues