@crvouga/mockingbird-service-sns 1.10.8 → 1.11.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/CHANGELOG.md +8 -5
- package/README.md +4 -0
- package/dist/{chunk-3JPO33BB.js → chunk-4R7THWFM.js} +3 -3
- package/dist/{chunk-QJXPKHYS.js → chunk-HRQXLPPC.js} +19 -2
- package/dist/chunk-HRQXLPPC.js.map +7 -0
- package/dist/cli.js +2 -2
- package/dist/index.js +1 -1
- package/dist/server.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-QJXPKHYS.js.map +0 -7
- /package/dist/{chunk-3JPO33BB.js.map → chunk-4R7THWFM.js.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
# Changelog — @crvouga/mockingbird-service-sns
|
|
2
2
|
|
|
3
|
-
## 1.
|
|
3
|
+
## 1.11.0 (2026-11-11)
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
- add a harness that shows fleet SMS, email and push ([946d4d2](https://github.com/crvouga/mockingbird/commit/946d4d2fa87fb905e2c1b16d39a63ef541930aea))
|
|
8
|
+
|
|
9
|
+
## 1.10.8 (2026-11-02)
|
|
4
10
|
|
|
5
11
|
### Fixes and improvements
|
|
6
12
|
|
|
@@ -9,15 +15,12 @@
|
|
|
9
15
|
- attach the snapshot download link and revoke its URL later ([a106903](https://github.com/crvouga/mockingbird/commit/a106903abe9d7d5def7f2857e2d7644c4ebcdae2))
|
|
10
16
|
- stop the page-hide save inheriting the last write's result as `force` ([551c2dc](https://github.com/crvouga/mockingbird/commit/551c2dcd3615f82e70e0cd0b8a11c82a663d18b6))
|
|
11
17
|
- keep the record id in the State table's id column ([2fc9bee](https://github.com/crvouga/mockingbird/commit/2fc9beeba6dd8bfe129993a4ff53fbd2925bf569))
|
|
18
|
+
- list migrations applied in the same second in run order ([f8c0591](https://github.com/crvouga/mockingbird/commit/f8c059146a65bfaf7fe99b4d3b6e812e82602bb9))
|
|
12
19
|
- prune idempotency keys after 24 hours on the mock clock ([094c8b1](https://github.com/crvouga/mockingbird/commit/094c8b124211ae02901c26eb96cca410434b855a))
|
|
13
20
|
- drop the previous emulator's manifest when switching emulators ([7ed4666](https://github.com/crvouga/mockingbird/commit/7ed46661288662a3789dbe013f1a195905b217e4))
|
|
14
21
|
- reject a migration list that repeats an id, naming it ([47721d9](https://github.com/crvouga/mockingbird/commit/47721d96a29f4b5184322d19c1b10750086e8da4))
|
|
15
22
|
- reserve the manual admin view id ([3d4da92](https://github.com/crvouga/mockingbird/commit/3d4da926182ce609fba44e0fd58abcbb253eee2c))
|
|
16
23
|
|
|
17
|
-
### Dependencies
|
|
18
|
-
|
|
19
|
-
- `@crvouga/mockingbird-service-sqlite`
|
|
20
|
-
|
|
21
24
|
## 1.10.7 (2026-11-02)
|
|
22
25
|
|
|
23
26
|
### Fixes and improvements
|
package/README.md
CHANGED
|
@@ -33,6 +33,10 @@ reset, timeline, clock, journal, metrics and fault controls. No AWS account is n
|
|
|
33
33
|
|
|
34
34
|
Implemented AWS operations: `CreateTopic`, `DeleteTopic`, `ListTopics`, `GetTopicAttributes`, `SetTopicAttributes`, `Subscribe`, `Unsubscribe`, `ListSubscriptions`, `ListSubscriptionsByTopic`, `GetSubscriptionAttributes`, `SetSubscriptionAttributes`, `ConfirmSubscription`, `Publish`, `PublishBatch`, `TagResource`, `UntagResource`, `ListTagsForResource`.
|
|
35
35
|
|
|
36
|
+
`Publish` with `PhoneNumber` (and no `TopicArn`) sends a direct SMS: the number must be E.164, otherwise
|
|
37
|
+
`InvalidParameter`. The message is stored in `sns_messages` like a topic publish, readable through
|
|
38
|
+
`GET /__admin/state/sns_messages`.
|
|
39
|
+
|
|
36
40
|
Operations outside this list fail explicitly. This package emulates API state, not AWS infrastructure,
|
|
37
41
|
production quotas, billing, IAM enforcement, or provider consoles. Service-specific omissions and
|
|
38
42
|
oracle evidence are recorded in [the AWS coverage ledger](../../../docs/AWS_COVERAGE.md).
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
parseFaultHeader,
|
|
10
10
|
resolveAdminPrefix,
|
|
11
11
|
restoreClock
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-HRQXLPPC.js";
|
|
13
13
|
|
|
14
14
|
// ../../adapters/node/dist/cli.js
|
|
15
15
|
import { readFile as readFile5 } from "node:fs/promises";
|
|
@@ -3057,7 +3057,7 @@ async function preflightFleet(config, options) {
|
|
|
3057
3057
|
break;
|
|
3058
3058
|
}
|
|
3059
3059
|
}
|
|
3060
|
-
targets.set(name, { ...target, packageVersion: packageVersion ?? "1.
|
|
3060
|
+
targets.set(name, { ...target, packageVersion: packageVersion ?? "1.11.0" });
|
|
3061
3061
|
} catch (error) {
|
|
3062
3062
|
throw new Error(`service ${name}: ${error instanceof Error ? error.message : String(error)}`, { cause: error });
|
|
3063
3063
|
}
|
|
@@ -5009,4 +5009,4 @@ export {
|
|
|
5009
5009
|
createServer2 as createServer,
|
|
5010
5010
|
serveTarget
|
|
5011
5011
|
};
|
|
5012
|
-
//# sourceMappingURL=chunk-
|
|
5012
|
+
//# sourceMappingURL=chunk-4R7THWFM.js.map
|
|
@@ -8168,7 +8168,7 @@ var stateAdminRoutes = (routes) => {
|
|
|
8168
8168
|
};
|
|
8169
8169
|
|
|
8170
8170
|
// ../core/dist/version.js
|
|
8171
|
-
var PACKAGE_VERSION = true ? "1.
|
|
8171
|
+
var PACKAGE_VERSION = true ? "1.11.0" : UNRELEASED_VERSION;
|
|
8172
8172
|
|
|
8173
8173
|
// ../core/dist/webhooks.js
|
|
8174
8174
|
var json4 = (status, body) => new Response(JSON.stringify(body), {
|
|
@@ -9562,6 +9562,23 @@ var SnsAPI = class extends AwsProtocolAPI {
|
|
|
9562
9562
|
});
|
|
9563
9563
|
return {};
|
|
9564
9564
|
}
|
|
9565
|
+
if (operation === "Publish" && input.PhoneNumber !== void 0 && !input.TopicArn) {
|
|
9566
|
+
const phone = String(input.PhoneNumber);
|
|
9567
|
+
if (!/^\+[1-9]\d{1,14}$/.test(phone))
|
|
9568
|
+
throw new AwsError(
|
|
9569
|
+
"InvalidParameter",
|
|
9570
|
+
`Invalid parameter: PhoneNumber Reason: ${phone} is not valid to publish to`
|
|
9571
|
+
);
|
|
9572
|
+
awsRequired(input, "Message");
|
|
9573
|
+
const messageId = this.ids.next("", 36);
|
|
9574
|
+
this.collection("messages").insert(messageId, {
|
|
9575
|
+
...input,
|
|
9576
|
+
MessageId: messageId,
|
|
9577
|
+
PhoneNumber: phone,
|
|
9578
|
+
Timestamp: this.now() / 1e3
|
|
9579
|
+
});
|
|
9580
|
+
return { MessageId: messageId };
|
|
9581
|
+
}
|
|
9565
9582
|
const id = String(input.TopicArn ?? input.ResourceArn ?? ""), topic = this.get("topics", id, "NotFound");
|
|
9566
9583
|
if (operation === "DeleteTopic") {
|
|
9567
9584
|
topics.delete(id);
|
|
@@ -9675,4 +9692,4 @@ export {
|
|
|
9675
9692
|
createRuntime2 as createRuntime,
|
|
9676
9693
|
SnsAPI
|
|
9677
9694
|
};
|
|
9678
|
-
//# sourceMappingURL=chunk-
|
|
9695
|
+
//# sourceMappingURL=chunk-HRQXLPPC.js.map
|