@crvouga/mockingbird-service-stripe 2.3.0 → 2.3.2
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 +18 -5
- package/dist/{chunk-H6YCFQIS.js → chunk-JTG65WGU.js} +10 -5
- package/dist/{chunk-H6YCFQIS.js.map → chunk-JTG65WGU.js.map} +2 -2
- package/dist/{chunk-WXTYR6RQ.js → chunk-MIW47FAG.js} +2 -2
- 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-WXTYR6RQ.js.map → chunk-MIW47FAG.js.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,23 @@
|
|
|
1
1
|
# Changelog — @crvouga/mockingbird-service-stripe
|
|
2
2
|
|
|
3
|
-
## 2.3.
|
|
3
|
+
## 2.3.2 (2026-10-05)
|
|
4
|
+
|
|
5
|
+
### Fixes and improvements
|
|
6
|
+
|
|
7
|
+
- preserve Unicode feature names ([d0656f4](https://github.com/crvouga/mockingbird/commit/d0656f49905c78c301024117e1b727765d6ade2d))
|
|
8
|
+
- reject blank marketing features ([9546103](https://github.com/crvouga/mockingbird/commit/9546103a40d0e9c6f7a14dde36f9af3a405ca83e))
|
|
9
|
+
- reject empty customer accounts ([de4c228](https://github.com/crvouga/mockingbird/commit/de4c228831a823ee85309d2722375b31571d5b88))
|
|
10
|
+
- stabilize parity coverage and comparisons ([32eb860](https://github.com/crvouga/mockingbird/commit/32eb860e36590079bde991bebc1d5cb887a6f6eb))
|
|
11
|
+
|
|
12
|
+
## 2.3.1 (2026-10-05)
|
|
13
|
+
|
|
14
|
+
### Fixes and improvements
|
|
15
|
+
|
|
16
|
+
- validate invoice payment filters ([a2af324](https://github.com/crvouga/mockingbird/commit/a2af3241b4584c27e4565d0bfc09ed8c06384f2c))
|
|
17
|
+
- refresh corpus and isolate Stripe webhooks ([e603465](https://github.com/crvouga/mockingbird/commit/e603465baed9ed640997d3ae817b73090f4fbf95))
|
|
18
|
+
- stabilize parity and verifier CI ([8753b79](https://github.com/crvouga/mockingbird/commit/8753b7983b308eaa2753575f9dc3fbfc8b28dffd))
|
|
19
|
+
|
|
20
|
+
## 2.3.0 (2026-10-04)
|
|
4
21
|
|
|
5
22
|
### Features
|
|
6
23
|
|
|
@@ -17,10 +34,6 @@
|
|
|
17
34
|
- reconcile combined PR integration ([124d5be](https://github.com/crvouga/mockingbird/commit/124d5bed7576535ff481ce6da7d2369957799665))
|
|
18
35
|
- preserve inferred form headers ([02bdd28](https://github.com/crvouga/mockingbird/commit/02bdd2806a9a934607ecd7ffd0cfbe4f6ba80c91))
|
|
19
36
|
|
|
20
|
-
### Dependencies
|
|
21
|
-
|
|
22
|
-
- `@crvouga/mockingbird-service-sqlite`
|
|
23
|
-
|
|
24
37
|
## 2.2.1 (2026-10-04)
|
|
25
38
|
|
|
26
39
|
### Fixes and improvements
|
|
@@ -2363,7 +2363,7 @@ var stateAdminRoutes = (routes) => {
|
|
|
2363
2363
|
};
|
|
2364
2364
|
|
|
2365
2365
|
// ../core/dist/version.js
|
|
2366
|
-
var PACKAGE_VERSION = true ? "2.3.
|
|
2366
|
+
var PACKAGE_VERSION = true ? "2.3.2" : UNRELEASED_VERSION;
|
|
2367
2367
|
|
|
2368
2368
|
// ../core/dist/signing.js
|
|
2369
2369
|
var encoder = new TextEncoder();
|
|
@@ -3825,7 +3825,7 @@ var optionalString = (params, key, current) => {
|
|
|
3825
3825
|
if (value === "") return null;
|
|
3826
3826
|
return value;
|
|
3827
3827
|
};
|
|
3828
|
-
var strip = (value) => value.replace(/^[\
|
|
3828
|
+
var strip = (value) => value.replace(/^[\t\n\v\f\r \0]+|[\t\n\v\f\r \0]+$/g, "");
|
|
3829
3829
|
var strippedString = (params, key, current) => {
|
|
3830
3830
|
const value = params[key];
|
|
3831
3831
|
if (value === void 0) return current;
|
|
@@ -7092,6 +7092,10 @@ var invoicePaymentHandlers = (services) => ({
|
|
|
7092
7092
|
const record = filter === void 0 ? null : stringOf(filter, "payment_record");
|
|
7093
7093
|
if (filter !== void 0 && type === null)
|
|
7094
7094
|
throw invalidRequest("Missing required param: payment[type].", "payment[type]");
|
|
7095
|
+
if (type === "payment_record" && intent !== null)
|
|
7096
|
+
throw invalidRequest(
|
|
7097
|
+
"You can only specify payment[payment_record] with payment[type]=payment_record"
|
|
7098
|
+
);
|
|
7095
7099
|
if (status !== null && !STATUSES.includes(status))
|
|
7096
7100
|
throw invalidRequest(`Invalid status: must be one of ${STATUSES.join(", ")}`, "status");
|
|
7097
7101
|
const all = allPayments(scope.account);
|
|
@@ -8076,6 +8080,7 @@ var subscriptionHandlers = (services) => {
|
|
|
8076
8080
|
GetSubscriptions: async (context) => {
|
|
8077
8081
|
const scope = requestScope(services, context);
|
|
8078
8082
|
const params = queryParams(context);
|
|
8083
|
+
if (context.query.customer_account === "") throw parameterInvalidEmpty("customer_account");
|
|
8079
8084
|
const customer = stringOf(params, "customer");
|
|
8080
8085
|
if (customer !== null && !scope.account.customers.get(customer))
|
|
8081
8086
|
throw resourceMissing("customer", customer, "customer", 400);
|
|
@@ -10201,7 +10206,7 @@ var productValidators = (mode, current, prefix = "") => {
|
|
|
10201
10206
|
marketing_features: (params) => {
|
|
10202
10207
|
if (!Array.isArray(params.marketing_features)) return;
|
|
10203
10208
|
params.marketing_features.forEach((feature, index) => {
|
|
10204
|
-
if (feature?.name === "")
|
|
10209
|
+
if (typeof feature?.name === "string" && strip(feature.name) === "")
|
|
10205
10210
|
throw parameterInvalidEmpty(`${at("marketing_features")}[${index}][name]`);
|
|
10206
10211
|
});
|
|
10207
10212
|
},
|
|
@@ -10233,7 +10238,7 @@ var apply = (current, params, now) => {
|
|
|
10233
10238
|
// Stripe trims each feature name.
|
|
10234
10239
|
params.marketing_features.map((feature) => ({
|
|
10235
10240
|
...feature,
|
|
10236
|
-
name: feature.name
|
|
10241
|
+
name: strip(feature.name)
|
|
10237
10242
|
}))
|
|
10238
10243
|
);
|
|
10239
10244
|
next.metadata = mergeMetadata(current.metadata, params.metadata);
|
|
@@ -19211,4 +19216,4 @@ export {
|
|
|
19211
19216
|
createRuntime2 as createRuntime,
|
|
19212
19217
|
StripeAPI
|
|
19213
19218
|
};
|
|
19214
|
-
//# sourceMappingURL=chunk-
|
|
19219
|
+
//# sourceMappingURL=chunk-JTG65WGU.js.map
|