@technomoron/mail-magic-client 1.0.32 → 1.0.33
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/CHANGES +4 -1
- package/README.md +5 -0
- package/package.json +3 -3
package/CHANGES
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
CHANGES
|
|
2
2
|
=======
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
Version 1.0.33 (2026-02-22)
|
|
5
5
|
|
|
6
6
|
- chore(release): add package-level `release:check` script and wire `release` to shared publish script.
|
|
7
7
|
- chore(scripts): replace `rm -rf` cleanup scripts with `rimraf`.
|
|
8
8
|
- test(logging): quiet package test output by default (silent Vitest with compact dot reporter).
|
|
9
|
+
- fix(scripts): remove `--ext` flags from `lint`/`lintfix` scripts — silently ignored by ESLint v9 flat config.
|
|
10
|
+
- docs(readme): document the `viaApiBase` parameter of `fetchPublicAsset`, explaining when to use the `/asset/` vs `/api/asset/` route prefix.
|
|
11
|
+
- (Changes generated/assisted by Claude Code (profile: anthropic-claude-sonnet-4-6/high).)
|
|
9
12
|
- (Changes generated/assisted by Codex (profile: chatgpt-5.3-codex/medium).)
|
|
10
13
|
|
|
11
14
|
Version 1.0.32 (2026-02-22)
|
package/README.md
CHANGED
|
@@ -103,3 +103,8 @@ The CLI is now a separate package: `@technomoron/mail-magic-cli`.
|
|
|
103
103
|
- Public asset fetch helpers:
|
|
104
104
|
- `await client.fetchPublicAsset('example.test', 'images/logo.png')` -> `/asset/{domain}/{path}`
|
|
105
105
|
- `await client.fetchPublicAsset('example.test', 'images/logo.png', true)` -> `/api/asset/{domain}/{path}`
|
|
106
|
+
|
|
107
|
+
The third argument `viaApiBase` (default `false`) switches the route prefix. Use `false` (default) when the server
|
|
108
|
+
is configured to serve assets directly under `ASSET_ROUTE` (default `/asset`). Use `true` when you need to reach
|
|
109
|
+
assets via the API base path (e.g. `/api/asset`) — useful when the server is behind a reverse proxy that only
|
|
110
|
+
forwards requests under a single path prefix.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@technomoron/mail-magic-client",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.33",
|
|
4
4
|
"description": "Client library for mail-magic",
|
|
5
5
|
"main": "dist/cjs/mail-magic-client.js",
|
|
6
6
|
"types": "dist/cjs/mail-magic-client.d.ts",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"build": "run-s build:cjs build:esm",
|
|
36
36
|
"test": "vitest run --silent --reporter=dot",
|
|
37
37
|
"test:watch": "vitest",
|
|
38
|
-
"lint": "node ../../node_modules/eslint/bin/eslint.js --config ../../eslint.config.mjs --no-error-on-unmatched-pattern
|
|
39
|
-
"lintfix": "node ../../node_modules/eslint/bin/eslint.js --config ../../eslint.config.mjs --fix --no-error-on-unmatched-pattern
|
|
38
|
+
"lint": "node ../../node_modules/eslint/bin/eslint.js --config ../../eslint.config.mjs --no-error-on-unmatched-pattern ./src",
|
|
39
|
+
"lintfix": "node ../../node_modules/eslint/bin/eslint.js --config ../../eslint.config.mjs --fix --no-error-on-unmatched-pattern ./src",
|
|
40
40
|
"format": "run-s lintfix pretty",
|
|
41
41
|
"pretty": "node ../../node_modules/prettier/bin/prettier.cjs --config ../../.prettierrc --write \"**/*.{js,ts,vue,json,css,scss,md}\"",
|
|
42
42
|
"cleanbuild": "run-s clean:dist format build",
|