Releases: emailjs-com/emailjs-sdk
SDK v4.4.1
Fixes
- Fixed the option to use a custom storage provider
Improvements
- Dump versions
Essential Links
SDK v4.3.3
Improvements
The EmailJSResponseStatus model is explicitly exported to detect the error instance.
import emailjs from '@emailjs/browser';
try {
await emailjs.send('YOUR_SERVICE_ID', 'YOUR_TEMPLATE_ID');
console.log('SUCCESS!');
} catch (error) {
if (error instanceof emailjs.EmailJSResponseStatus) {
console.log('EMAILJS FAILED...', error);
return;
}
console.log('ANOTHER ERROR', error);
}
Essential Links
SDK v4.3.1
Async Store
Conceptually, all input or output in JavaScript is an asynchronous operation, except for localStorage. To simplify work with the custom storage solutions, we've used the asynchronous localStorage.
Essential Links
SDK v4.2.0
React Native
Officially, this package was created only for browsers, but we have reworked the use of localStorage so this package can be used with Native React (partial functionality).
Essential Links
SDK v4.1.0
Breaking changes
- Migrated to Rollup from Webpack
Improvements
- The size of the bundled SDK has been reduced
Essential Links
SDK v4.0.0
Breaking changes
Dropped support for older browsers
The API requests are migrated to use the Fetch API. The old browsers that do not support this API are not officially supported anymore.
Changed settings interface
Instead of a public key string, the parameter is now an options object. This parameter has supported compatibility but is outdated.
Please take a look at the documentation for more details.
Changes
Added the option to set a rate limit for API requests
Client-side implementation. It blocks requests sent before the timeout expiration. The advantage of this configuration on the client side is that it does not use the account quota.
Setting up blocking of unwanted requests
Client-side implementation. There are settings in the options where SDK users can specify unwanted variable values. Such requests will be rejected. This is useful for blocking specific email addresses, IP addresses, and other values.
Improvements
- Improved work with API
- Improved parameters verification before sending requests to the server
- Added more test cases
- Added parameters type checking