fix(tests): Update testing setup and bump deps; add deno.lock and combined Node/Deno/Bun test
This commit is contained in:
@@ -1,5 +1,13 @@
|
||||
# Changelog
|
||||
|
||||
## 2025-10-17 - 2.0.3 - fix(tests)
|
||||
Update testing setup and bump deps; add deno.lock and combined Node/Deno/Bun test
|
||||
|
||||
- Bump dev dependency @git.zone/tstest from ^2.6.1 to ^2.6.2 and dependency @push.rocks/smartrequest from ^4.3.1 to ^4.3.2 in package.json
|
||||
- Add deno.lock with resolved dependency tree (new lockfile checked in)
|
||||
- Introduce test/test.node+deno+bun.ts — consolidated tests for Node/Deno/Bun using Qenv and Mailgun integration flows
|
||||
- Remove the old test/test.ts (replaced by the new multi-runtime test file)
|
||||
|
||||
## 2025-10-13 - 2.0.2 - fix(mailgun)
|
||||
Normalize package scope and modernize Mailgun client: rename package to @apiclient.xyz/mailgun, update dependencies, refactor HTTP handling, fix types, update TS config and CI, refresh docs and tests
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@git.zone/tsbuild": "^2.1.65",
|
||||
"@git.zone/tstest": "^2.6.1",
|
||||
"@git.zone/tstest": "^2.6.2",
|
||||
"@push.rocks/qenv": "^6.1.3",
|
||||
"@push.rocks/tapbundle": "^6.0.3",
|
||||
"@types/node": "^22.0.0"
|
||||
@@ -24,7 +24,7 @@
|
||||
"dependencies": {
|
||||
"@push.rocks/smartfile": "^11.2.7",
|
||||
"@push.rocks/smartmail": "^2.1.0",
|
||||
"@push.rocks/smartrequest": "^4.3.1",
|
||||
"@push.rocks/smartrequest": "^4.3.2",
|
||||
"@push.rocks/smartsmtp": "^3.0.3",
|
||||
"@push.rocks/smartstring": "^4.0.2"
|
||||
},
|
||||
|
||||
35
pnpm-lock.yaml
generated
35
pnpm-lock.yaml
generated
@@ -15,8 +15,8 @@ importers:
|
||||
specifier: ^2.1.0
|
||||
version: 2.1.0
|
||||
'@push.rocks/smartrequest':
|
||||
specifier: ^4.3.1
|
||||
version: 4.3.1
|
||||
specifier: ^4.3.2
|
||||
version: 4.3.2
|
||||
'@push.rocks/smartsmtp':
|
||||
specifier: ^3.0.3
|
||||
version: 3.0.3
|
||||
@@ -28,8 +28,8 @@ importers:
|
||||
specifier: ^2.1.65
|
||||
version: 2.6.8
|
||||
'@git.zone/tstest':
|
||||
specifier: ^2.6.1
|
||||
version: 2.6.1(socks@2.8.7)(typescript@5.9.2)
|
||||
specifier: ^2.6.2
|
||||
version: 2.6.2(socks@2.8.7)(typescript@5.9.2)
|
||||
'@push.rocks/qenv':
|
||||
specifier: ^6.1.3
|
||||
version: 6.1.3
|
||||
@@ -437,8 +437,8 @@ packages:
|
||||
resolution: {integrity: sha512-SOHbQqBg3/769/jPQcdpPCmugdEtIJINiG0O6aWx+su91GvGhheha5dAhccsCutJYErr+aJcBqBYuUYfhOfkFQ==}
|
||||
hasBin: true
|
||||
|
||||
'@git.zone/tstest@2.6.1':
|
||||
resolution: {integrity: sha512-E2UNMb/FduiGfdkDYOdERp/Cn71y3gv6ypyEq7qCqZWfdO20/ZVqAF4YoclTmv4g1k4ST8KrizKEYE/INMWcww==}
|
||||
'@git.zone/tstest@2.6.2':
|
||||
resolution: {integrity: sha512-wNFRLI+z8zeExqg0Q41JlvS46UAKV5WYVHCodQjjEEOsX0utUIaBv1SkrlnJPw2PR8ETIqBse+UbA9p9i7aMZA==}
|
||||
hasBin: true
|
||||
|
||||
'@hapi/bourne@3.0.0':
|
||||
@@ -780,8 +780,8 @@ packages:
|
||||
'@push.rocks/smartrequest@2.1.0':
|
||||
resolution: {integrity: sha512-3eHLTRInHA+u+W98TqJwgTES7rRimBAsJC4JxVNQC3UUezmblAhM5/TIQsEBQTsbjAY8SeQKy6NHzW6iTiaD8w==}
|
||||
|
||||
'@push.rocks/smartrequest@4.3.1':
|
||||
resolution: {integrity: sha512-H5FQSfFEbSJCHpE2A+SasQQcxM5FlxhHIUEzhUsSLjtlCTEu9T7Xb1WzVLFYvdWfyP5VIrg+XM4AMOols8cG+Q==}
|
||||
'@push.rocks/smartrequest@4.3.2':
|
||||
resolution: {integrity: sha512-Alms3xnC9gpXg8XOgsczwJxnXEjAEf6SDUk0/Ykw9OJJVkZIstWkoytGwJS/hByx70WtPENvq30zBqxI1Gl9rQ==}
|
||||
|
||||
'@push.rocks/smartrouter@1.3.3':
|
||||
resolution: {integrity: sha512-1+xZEnWlhzqLWAaJ1zFNhQ0zgbfCWQl1DBT72LygLxTs+P0K8AwJKgqo/IX6CT55kGCFnPAZIYSbVJlGsgrB0w==}
|
||||
@@ -4321,7 +4321,7 @@ snapshots:
|
||||
'@push.rocks/smartopen': 2.0.0
|
||||
'@push.rocks/smartpath': 6.0.0
|
||||
'@push.rocks/smartpromise': 4.2.3
|
||||
'@push.rocks/smartrequest': 4.3.1
|
||||
'@push.rocks/smartrequest': 4.3.2
|
||||
'@push.rocks/smartrx': 3.0.10
|
||||
'@push.rocks/smartsitemap': 2.0.3
|
||||
'@push.rocks/smartstream': 3.2.5
|
||||
@@ -5096,7 +5096,7 @@ snapshots:
|
||||
'@push.rocks/smartlog': 3.1.10
|
||||
'@push.rocks/smartnpm': 2.0.6
|
||||
'@push.rocks/smartpath': 6.0.0
|
||||
'@push.rocks/smartrequest': 4.3.1
|
||||
'@push.rocks/smartrequest': 4.3.2
|
||||
'@push.rocks/smartshell': 3.3.0
|
||||
transitivePeerDependencies:
|
||||
- '@nuxt/kit'
|
||||
@@ -5113,7 +5113,7 @@ snapshots:
|
||||
'@push.rocks/smartshell': 3.3.0
|
||||
tsx: 4.20.6
|
||||
|
||||
'@git.zone/tstest@2.6.1(socks@2.8.7)(typescript@5.9.2)':
|
||||
'@git.zone/tstest@2.6.2(socks@2.8.7)(typescript@5.9.2)':
|
||||
dependencies:
|
||||
'@api.global/typedserver': 3.0.79
|
||||
'@git.zone/tsbundle': 2.5.1
|
||||
@@ -5133,7 +5133,7 @@ snapshots:
|
||||
'@push.rocks/smartnetwork': 4.4.0
|
||||
'@push.rocks/smartpath': 6.0.0
|
||||
'@push.rocks/smartpromise': 4.2.3
|
||||
'@push.rocks/smartrequest': 4.3.1
|
||||
'@push.rocks/smartrequest': 4.3.2
|
||||
'@push.rocks/smarts3': 2.2.6
|
||||
'@push.rocks/smartshell': 3.3.0
|
||||
'@push.rocks/smarttime': 4.1.1
|
||||
@@ -5530,7 +5530,7 @@ snapshots:
|
||||
'@push.rocks/smartfile': 11.2.7
|
||||
'@push.rocks/smartpath': 6.0.0
|
||||
'@push.rocks/smartpromise': 4.2.3
|
||||
'@push.rocks/smartrequest': 4.3.1
|
||||
'@push.rocks/smartrequest': 4.3.2
|
||||
'@push.rocks/smartrx': 3.0.10
|
||||
'@push.rocks/smartstream': 3.2.5
|
||||
'@push.rocks/smartunique': 3.0.9
|
||||
@@ -5723,7 +5723,7 @@ snapshots:
|
||||
'@push.rocks/smartmime': 2.0.4
|
||||
'@push.rocks/smartpath': 6.0.0
|
||||
'@push.rocks/smartpromise': 4.2.3
|
||||
'@push.rocks/smartrequest': 4.3.1
|
||||
'@push.rocks/smartrequest': 4.3.2
|
||||
'@push.rocks/smartstream': 3.2.5
|
||||
'@types/fs-extra': 11.0.4
|
||||
'@types/js-yaml': 4.0.9
|
||||
@@ -5861,7 +5861,7 @@ snapshots:
|
||||
'@push.rocks/smartfile': 11.2.7
|
||||
'@push.rocks/smartpath': 6.0.0
|
||||
'@push.rocks/smartpromise': 4.2.3
|
||||
'@push.rocks/smartrequest': 4.3.1
|
||||
'@push.rocks/smartrequest': 4.3.2
|
||||
'@push.rocks/smarttime': 4.1.1
|
||||
'@push.rocks/smartversion': 3.0.5
|
||||
package-json: 8.1.1
|
||||
@@ -5952,7 +5952,7 @@ snapshots:
|
||||
agentkeepalive: 4.6.0
|
||||
form-data: 4.0.4
|
||||
|
||||
'@push.rocks/smartrequest@4.3.1':
|
||||
'@push.rocks/smartrequest@4.3.2':
|
||||
dependencies:
|
||||
'@push.rocks/smartenv': 5.0.13
|
||||
'@push.rocks/smartpath': 6.0.0
|
||||
@@ -6120,17 +6120,20 @@ snapshots:
|
||||
transitivePeerDependencies:
|
||||
- '@aws-sdk/credential-providers'
|
||||
- '@mongodb-js/zstd'
|
||||
- '@nuxt/kit'
|
||||
- aws-crt
|
||||
- bare-abort-controller
|
||||
- bufferutil
|
||||
- gcp-metadata
|
||||
- kerberos
|
||||
- mongodb-client-encryption
|
||||
- react
|
||||
- react-native-b4a
|
||||
- snappy
|
||||
- socks
|
||||
- supports-color
|
||||
- utf-8-validate
|
||||
- vue
|
||||
|
||||
'@push.rocks/taskbuffer@3.4.0':
|
||||
dependencies:
|
||||
|
||||
@@ -50,8 +50,10 @@ tap.test('should send a smartmail with empty body', async () => {
|
||||
});
|
||||
|
||||
tap.test('should retrieve a mail using a retrieval url', async () => {
|
||||
// Note: This test requires a valid message storage URL from a recently sent email
|
||||
// Storage URLs are available for 3 days after sending via Events API or Mailgun dashboard
|
||||
const result = await testMailgunAccount.retrieveSmartMailFromMessageUrl(
|
||||
'https://sw.api.mailgun.net/v3/domains/mail.lossless.one/messages/AgMFnnnAKC8xp_dDa79LyoxhloxtaVmnRA==',
|
||||
'https://api.eu.mailgun.net/v3/domains/mail.lossless.one/messages/AgMFnnnAKC8xp_dDa79LyoxhloxtaVmnRA==',
|
||||
);
|
||||
console.log(result);
|
||||
|
||||
@@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@apiclient.xyz/mailgun',
|
||||
version: '2.0.2',
|
||||
version: '2.0.3',
|
||||
description: 'an api abstraction package for mailgun'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user