@tapedb/email 0.0.0-stage → 0.2.0

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Brandon Diaz
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,30 @@
1
- # Temporary Holding Version
1
+ # @tapedb/email
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Email sending for [tapedb](https://tapedb.dev), a typed database for Cloudflare:
4
+ one mailer over Cloudflare Email Service, with a local inbox during development.
5
+
6
+ ```bash
7
+ npm install @tapedb/tapedb @tapedb/email
8
+ ```
9
+
10
+ ```ts
11
+ import { mailer } from "@tapedb/email";
12
+
13
+ const email = mailer({ from: "no-reply@<your-domain>", binding: env.EMAIL });
14
+ await email.send({ to: "someone@<their-domain>", subject: "Hello", text: "Hi" });
15
+ ```
16
+
17
+ `mailer()` validates headers and body size, sends through the `send_email`
18
+ binding in production and captures to the local inbox under `tapedb dev`.
19
+ `npx @tapedb/cli init --auth` wires it into the generated `auth.ts`.
20
+
21
+ ## Two import paths, one module
22
+
23
+ `@tapedb/email` is an alias, not a fork: it re-exports
24
+ `@tapedb/tapedb/email` and pins the exact `@tapedb/tapedb` version it ships
25
+ with. Either path works, and the subpath stays supported:
26
+
27
+ ```ts
28
+ import { mailer } from "@tapedb/email"; // preferred
29
+ import { mailer } from "@tapedb/tapedb/email"; // same module, still supported
30
+ ```
package/index.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ // Types for `@tapedb/email` are `@tapedb/tapedb/email`'s: one declaration, no copy.
2
+ export * from "@tapedb/tapedb/email";
package/index.mjs ADDED
@@ -0,0 +1,4 @@
1
+ // `@tapedb/email` is `@tapedb/tapedb/email`: same module, preferred name.
2
+ // No logic lives here — the mailer and the local capture inbox are the core
3
+ // package's, so both import paths are always the same release.
4
+ export * from "@tapedb/tapedb/email";
package/package.json CHANGED
@@ -1,6 +1,37 @@
1
1
  {
2
2
  "name": "@tapedb/email",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.2.0",
4
+ "description": "Email sending for tapedb: one mailer over Cloudflare Email Service, with a local inbox in development.",
5
+ "type": "module",
6
+ "exports": {
7
+ ".": {
8
+ "types": "./index.d.ts",
9
+ "import": "./index.mjs"
10
+ }
11
+ },
12
+ "main": "index.mjs",
13
+ "types": "index.d.ts",
14
+ "sideEffects": false,
15
+ "files": [
16
+ "index.mjs",
17
+ "index.d.ts",
18
+ "README.md",
19
+ "LICENSE"
20
+ ],
21
+ "dependencies": {
22
+ "@tapedb/tapedb": "0.2.0"
23
+ },
24
+ "engines": {
25
+ "node": ">=22.18"
26
+ },
27
+ "license": "MIT",
28
+ "publishConfig": {
29
+ "access": "public"
30
+ },
31
+ "repository": {
32
+ "type": "git",
33
+ "url": "git+https://github.com/tapedb/tapedb.git",
34
+ "directory": "packages/email"
35
+ },
36
+ "homepage": "https://tapedb.dev"
37
+ }