express-sweet 1.0.28 → 1.0.30

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,48 @@
1
1
  # Changelog
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
+ ## [1.0.30] - 2023/6/26
5
+ ### Changed
6
+ - Fixed AWS Rekognition credentials passing.
7
+
8
+ ## [1.0.29] - 2023/6/20
9
+ ### Changed
10
+ - Changed class private variables and methods from soft private to hard private.
11
+
12
+ ### Added
13
+ - Added AWS SES email sending client class.
14
+ ```js
15
+ const sweet = require('express-sweet');
16
+
17
+ // Load environment variables.
18
+ sweet.middlewares.Environment.mount();
19
+
20
+ // SES Client.
21
+ const client = new sweet.services.AWSSesClient({
22
+ apiVersion: process.env.SES_API_VERSION,
23
+ region: process.env.SES_REGION,
24
+ accessKeyId: process.env.SES_ACCESS_KEY_ID,
25
+ secretAccessKey: process.env.SES_SECRET_ACCESS_KEY,
26
+ });
27
+
28
+ // Send an email from "test<user1@example.com>" to "user2@example.com".
29
+ await client
30
+ .from('user1@example.com', 'Sender Name')
31
+ .to('user2@example.com')
32
+ .subject('Test email')
33
+ .body('Hi, this is a test email')
34
+ .send();
35
+
36
+ // Use variables in the body of the e-mail.
37
+ // The body can use the handlebars and handlebars-extd syntax.
38
+ await client
39
+ .from('user1@example.com', 'Sender Name')
40
+ .to('user2@example.com')
41
+ .subject('Test email')
42
+ .body('Hello {{name}}', {name: 'Mason'})
43
+ .send();
44
+ ```
45
+
4
46
  ## [1.0.28] - 2023/6/16
5
47
  ### Changed
6
48
  - Updated AWS SDK version from 2 to 3.
@@ -147,7 +189,7 @@ All notable changes to this project will be documented in this file.
147
189
  ### Added
148
190
  - Added an option to the face indexing method to retrieve details (gender, emotion, age group) of indexed faces.
149
191
  ```js
150
- const sweet = require('../dist/build.common');
192
+ const sweet = require('express-sweet');
151
193
 
152
194
  // Load environment variables.
153
195
  sweet.middlewares.Environment.mount();
@@ -191,7 +233,7 @@ All notable changes to this project will be documented in this file.
191
233
  ### Added
192
234
  - Added an option to get details (emotion, gender, age group) to the face detection method.
193
235
  ```js
194
- const sweet = require('../dist/build.common');
236
+ const sweet = require('express-sweet');
195
237
 
196
238
  // Load environment variables.
197
239
  sweet.middlewares.Environment.mount();
@@ -478,4 +520,6 @@ All notable changes to this project will be documented in this file.
478
520
  [1.0.25]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.24...v1.0.25
479
521
  [1.0.26]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.25...v1.0.26
480
522
  [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
523
+ [1.0.28]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.27...v1.0.28
524
+ [1.0.29]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.28...v1.0.29
525
+ [1.0.30]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.29...v1.0.30