Skip to content

Commit b22cf83

Browse files
authored
Releasing v3.23.1. (#114)
1 parent 567398c commit b22cf83

7 files changed

Lines changed: 58 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
### v3.23.1 (2026-04-22)
2+
* * *
3+
4+
### Bug Fixes
5+
- Fixed missing webhook exports (`WebhookEventType`, `WebhookContentType`, `basicAuthValidator`, and webhook error classes) from worker entrypoints, causing a `SyntaxError` in Bun and other runtimes that resolve to the worker bundle.
6+
7+
18
### v3.23.0 (2026-03-27)
29
* * *
310
### New Resources:

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.23.0
1+
3.23.1

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "chargebee",
3-
"version": "3.23.0",
3+
"version": "3.23.1",
44
"description": "A library for integrating with Chargebee.",
55
"scripts": {
66
"prepack": "npm install && npm run build",

src/chargebee.cjs.worker.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,26 @@ const Chargebee = CreateChargebee(httpClient);
66
module.exports = Chargebee;
77
module.exports.Chargebee = Chargebee;
88
module.exports.default = Chargebee;
9+
10+
// Export webhook utilities
11+
export {
12+
WebhookEventType,
13+
WebhookContentType,
14+
} from './resources/webhook/handler.js';
15+
export { basicAuthValidator } from './resources/webhook/auth.js';
16+
export {
17+
WebhookError,
18+
WebhookAuthenticationError,
19+
WebhookPayloadValidationError,
20+
WebhookPayloadParseError,
21+
} from './resources/webhook/handler.js';
22+
23+
// Export webhook types
24+
export type {
25+
WebhookEvent,
26+
WebhookContext,
27+
WebhookHandlerOptions,
28+
HandleOptions,
29+
RequestValidator,
30+
} from './resources/webhook/handler.js';
31+
export type { CredentialValidator } from './resources/webhook/auth.js';

src/chargebee.esm.worker.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,26 @@ const httpClient = new FetchHttpClient();
55
const Chargebee = CreateChargebee(httpClient);
66

77
export default Chargebee;
8+
9+
// Export webhook utilities
10+
export {
11+
WebhookEventType,
12+
WebhookContentType,
13+
} from './resources/webhook/handler.js';
14+
export { basicAuthValidator } from './resources/webhook/auth.js';
15+
export {
16+
WebhookError,
17+
WebhookAuthenticationError,
18+
WebhookPayloadValidationError,
19+
WebhookPayloadParseError,
20+
} from './resources/webhook/handler.js';
21+
22+
// Export webhook types
23+
export type {
24+
WebhookEvent,
25+
WebhookContext,
26+
WebhookHandlerOptions,
27+
HandleOptions,
28+
RequestValidator,
29+
} from './resources/webhook/handler.js';
30+
export type { CredentialValidator } from './resources/webhook/auth.js';

src/environment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const Environment = {
99
hostSuffix: '.chargebee.com',
1010
apiPath: '/api/v2',
1111
timeout: DEFAULT_TIME_OUT,
12-
clientVersion: 'v3.23.0',
12+
clientVersion: 'v3.23.1',
1313
port: DEFAULT_PORT,
1414
timemachineWaitInMillis: DEFAULT_TIME_MACHINE_WAIT,
1515
exportWaitInMillis: DEFAULT_EXPORT_WAIT,

0 commit comments

Comments
 (0)