Skip to content

Commit 6940445

Browse files
ianwiedsclaude
andcommitted
v5.0.196: Move disposable domain fetch to prepare-package hooks.before
Eliminates the drift between git and npm where the disposable domain list was only refreshed at npm publish time (via prepublishOnly), leaving the committed JSON stale. Now the fetch runs via prepare-package's new hooks.before config, which fires on every npm run prepare / npm install / npm publish — so fresh domains land in both the git working tree and the published tarball. Bumps prepare-package devDep to ^2.1.0 for hooks support. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent bb5a99a commit 6940445

4 files changed

Lines changed: 57 additions & 82 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
1414
- `Fixed` for any bug fixes.
1515
- `Security` in case of vulnerabilities.
1616

17+
# [5.0.196] - 2026-04-10
18+
### Changed
19+
- Moved disposable domain fetch from `prepublishOnly` lifecycle hook to `prepare-package`'s new `hooks.before` config. The fetch now runs on every `npm run prepare` / `npm install` / `npm publish`, so fresh domains land in both the git working tree and the published tarball — no more drift between git and npm.
20+
- Bumped `prepare-package` devDep to ^2.1.0 (required for hooks support)
21+
1722
# [5.0.195] - 2026-04-10
1823
### Fixed
1924
- 24-hour cancellation guard in `payments/cancel` was comparing `Date.now()` (milliseconds) against `startDateUNIX` (seconds), producing an "age" of ~56 years for every subscription — guard never fired and users could cancel brand-new subscriptions. Now multiplies `startDateUNIX` by 1000 before subtraction.

package-lock.json

Lines changed: 41 additions & 74 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "backend-manager",
3-
"version": "5.0.195",
3+
"version": "5.0.196",
44
"description": "Quick tools for developing Firebase functions",
55
"main": "src/manager/index.js",
66
"bin": {
@@ -11,7 +11,6 @@
1111
},
1212
"scripts": {
1313
"start": "node src/manager/index.js",
14-
"prepublishOnly": "node scripts/update-disposable-domains.js",
1514
"prepare": "node -e \"require('prepare-package')()\"",
1615
"prepare:watch": "node -e \"require('prepare-package/watch')()\""
1716
},
@@ -44,7 +43,10 @@
4443
"input": "./src_",
4544
"output": "./dist_",
4645
"replace": {},
47-
"type": "copy"
46+
"type": "copy",
47+
"hooks": {
48+
"before": "node scripts/update-disposable-domains.js"
49+
}
4850
},
4951
"dependencies": {
5052
"@firebase/rules-unit-testing": "^5.0.0",
@@ -54,7 +56,7 @@
5456
"@modelcontextprotocol/sdk": "^1.29.0",
5557
"@octokit/rest": "^22.0.1",
5658
"@sendgrid/mail": "^8.1.6",
57-
"@sentry/node": "^10.47.0",
59+
"@sentry/node": "^10.48.0",
5860
"body-parser": "^2.2.2",
5961
"busboy": "^1.6.0",
6062
"chalk": "^5.6.2",
@@ -78,7 +80,7 @@
7880
"npm-api": "^1.0.1",
7981
"pushid": "^1.0.0",
8082
"sanitize-html": "^2.17.2",
81-
"stripe": "^22.0.0",
83+
"stripe": "^22.0.1",
8284
"uid-generator": "^2.0.0",
8385
"uuid": "^13.0.0",
8486
"wonderful-fetch": "^2.0.5",
@@ -88,10 +90,10 @@
8890
"yargs": "^18.0.0"
8991
},
9092
"devDependencies": {
91-
"prepare-package": "^2.0.8"
93+
"prepare-package": "^2.1.0"
9294
},
9395
"peerDependencies": {
94-
"firebase-admin": "^13.7.0",
95-
"firebase-functions": "^7.2.3"
96+
"firebase-admin": "^13.8.0",
97+
"firebase-functions": "^7.2.5"
9698
}
9799
}

src/manager/libraries/disposable-domains.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3152,6 +3152,7 @@
31523152
"moneypipe.net",
31533153
"mongrec.top",
31543154
"monmail.fr.nf",
3155+
"monomoho.site",
31553156
"monumentmail.com",
31563157
"moolee.net",
31573158
"moonapps.org",

0 commit comments

Comments
 (0)