express-sweet 1.0.28 → 1.0.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,44 @@
1
1
  # Changelog
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
+ ## [1.0.29] - 2023/6/20
5
+ ### Changed
6
+ - Changed class private variables and methods from soft private to hard private.
7
+
8
+ ### Added
9
+ - Added AWS SES email sending client class.
10
+ ```js
11
+ const sweet = require('express-sweet');
12
+
13
+ // Load environment variables.
14
+ sweet.middlewares.Environment.mount();
15
+
16
+ // SES Client.
17
+ const client = new sweet.services.AWSSesClient({
18
+ apiVersion: process.env.SES_API_VERSION,
19
+ region: process.env.SES_REGION,
20
+ accessKeyId: process.env.SES_ACCESS_KEY_ID,
21
+ secretAccessKey: process.env.SES_SECRET_ACCESS_KEY,
22
+ });
23
+
24
+ // Send an email from "test<user1@example.com>" to "user2@example.com".
25
+ await client
26
+ .from('user1@example.com', 'Sender Name')
27
+ .to('user2@example.com')
28
+ .subject('Test email')
29
+ .body('Hi, this is a test email')
30
+ .send();
31
+
32
+ // Use variables in the body of the e-mail.
33
+ // The body can use the handlebars and handlebars-extd syntax.
34
+ await client
35
+ .from('user1@example.com', 'Sender Name')
36
+ .to('user2@example.com')
37
+ .subject('Test email')
38
+ .body('Hello {{name}}', {name: 'Mason'})
39
+ .send();
40
+ ```
41
+
4
42
  ## [1.0.28] - 2023/6/16
5
43
  ### Changed
6
44
  - Updated AWS SDK version from 2 to 3.
@@ -147,7 +185,7 @@ All notable changes to this project will be documented in this file.
147
185
  ### Added
148
186
  - Added an option to the face indexing method to retrieve details (gender, emotion, age group) of indexed faces.
149
187
  ```js
150
- const sweet = require('../dist/build.common');
188
+ const sweet = require('express-sweet');
151
189
 
152
190
  // Load environment variables.
153
191
  sweet.middlewares.Environment.mount();
@@ -191,7 +229,7 @@ All notable changes to this project will be documented in this file.
191
229
  ### Added
192
230
  - Added an option to get details (emotion, gender, age group) to the face detection method.
193
231
  ```js
194
- const sweet = require('../dist/build.common');
232
+ const sweet = require('express-sweet');
195
233
 
196
234
  // Load environment variables.
197
235
  sweet.middlewares.Environment.mount();
@@ -478,4 +516,5 @@ All notable changes to this project will be documented in this file.
478
516
  [1.0.25]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.24...v1.0.25
479
517
  [1.0.26]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.25...v1.0.26
480
518
  [1.0.27]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.26...v1.0.27
481
- [1.0.28]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.27...v1.0.28
519
+ [1.0.28]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.27...v1.0.28
520
+ [1.0.29]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.28...v1.0.29