@flowmails/flowmails-sdk 0.1.0 → 0.1.1

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.
Files changed (2) hide show
  1. package/README.md +6 -2
  2. package/package.json +8 -3
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  The official JavaScript / TypeScript SDK for the **Flowmails SDK backend** (`https://sdk.flowmails.net`).
4
4
 
5
- > **Status: private (v0.1)** — this package is published from the Flowmails monorepo but the workspace is currently private. Wire format and surface can change in v0.x.
5
+ > **Status: public preview (v0.1.x)** — published from the Flowmails monorepo. Wire format and surface can still change in v0.x; pin the minor version (`~0.1`) in production.
6
6
 
7
7
  ## Install
8
8
 
@@ -31,6 +31,10 @@ const result = await fm.send({
31
31
  console.log(result); // { id: "msg_8421", status: "queued" }
32
32
  ```
33
33
 
34
+ ## About Flowmails
35
+
36
+ [Flowmails](https://flowmails.net) is a Cloudflare-native email platform: custom-domain mail (inbox, outbox, and routing rules) that lives in your own D1, with a REST API and webhooks on top. The dashboard, docs, and blog live at **<https://flowmails.net>** — sign up there to mint an API key and bind a domain before using this SDK.
37
+
34
38
  ## API keys
35
39
 
36
40
  API keys are minted in the Flowmails dashboard at `Settings → API Keys`. Each key is pinned to one of your registered domains — the SDK backend rejects `send(...)` calls where the `from` address doesn't land on the key-bound domain.
@@ -73,4 +77,4 @@ try {
73
77
 
74
78
  ## License
75
79
 
76
- UNLICENSED (private monorepo).
80
+ MIT © 2026 Flowmails. See [`LICENSE`](./LICENSE).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowmails/flowmails-sdk",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Official JavaScript / TypeScript SDK for the Flowmails transactional email API (https://sdk.flowmails.net).",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -22,14 +22,19 @@
22
22
  "build": "tsup",
23
23
  "dev": "tsup --watch",
24
24
  "typecheck": "tsc -p tsconfig.json --noEmit",
25
- "clean": "rm -rf dist"
25
+ "clean": "rm -rf dist",
26
+ "test": "vitest run",
27
+ "test:unit": "vitest run test/unit",
28
+ "test:integration": "vitest run test/integration",
29
+ "test:watch": "vitest"
26
30
  },
27
31
  "publishConfig": {
28
32
  "access": "public"
29
33
  },
30
34
  "devDependencies": {
31
35
  "tsup": "^8.3.5",
32
- "typescript": "^5.6.3"
36
+ "typescript": "^5.6.3",
37
+ "vitest": "~3.0.7"
33
38
  },
34
39
  "engines": {
35
40
  "node": ">=18.0.0"