chargebee 3.23.0 → 3.23.1

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 CHANGED
@@ -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
+
1
8
  ### v3.23.0 (2026-03-27)
2
9
  * * *
3
10
  ### New Resources:
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WebhookPayloadParseError = exports.WebhookPayloadValidationError = exports.WebhookAuthenticationError = exports.WebhookError = exports.basicAuthValidator = exports.WebhookContentType = exports.WebhookEventType = void 0;
3
4
  const createChargebee_js_1 = require("./createChargebee.js");
4
5
  const FetchClient_js_1 = require("./net/FetchClient.js");
5
6
  const httpClient = new FetchClient_js_1.FetchHttpClient();
@@ -7,3 +8,14 @@ const Chargebee = (0, createChargebee_js_1.CreateChargebee)(httpClient);
7
8
  module.exports = Chargebee;
8
9
  module.exports.Chargebee = Chargebee;
9
10
  module.exports.default = Chargebee;
11
+ // Export webhook utilities
12
+ var handler_js_1 = require("./resources/webhook/handler.js");
13
+ Object.defineProperty(exports, "WebhookEventType", { enumerable: true, get: function () { return handler_js_1.WebhookEventType; } });
14
+ Object.defineProperty(exports, "WebhookContentType", { enumerable: true, get: function () { return handler_js_1.WebhookContentType; } });
15
+ var auth_js_1 = require("./resources/webhook/auth.js");
16
+ Object.defineProperty(exports, "basicAuthValidator", { enumerable: true, get: function () { return auth_js_1.basicAuthValidator; } });
17
+ var handler_js_2 = require("./resources/webhook/handler.js");
18
+ Object.defineProperty(exports, "WebhookError", { enumerable: true, get: function () { return handler_js_2.WebhookError; } });
19
+ Object.defineProperty(exports, "WebhookAuthenticationError", { enumerable: true, get: function () { return handler_js_2.WebhookAuthenticationError; } });
20
+ Object.defineProperty(exports, "WebhookPayloadValidationError", { enumerable: true, get: function () { return handler_js_2.WebhookPayloadValidationError; } });
21
+ Object.defineProperty(exports, "WebhookPayloadParseError", { enumerable: true, get: function () { return handler_js_2.WebhookPayloadParseError; } });
@@ -11,7 +11,7 @@ exports.Environment = {
11
11
  hostSuffix: '.chargebee.com',
12
12
  apiPath: '/api/v2',
13
13
  timeout: DEFAULT_TIME_OUT,
14
- clientVersion: 'v3.23.0',
14
+ clientVersion: 'v3.23.1',
15
15
  port: DEFAULT_PORT,
16
16
  timemachineWaitInMillis: DEFAULT_TIME_MACHINE_WAIT,
17
17
  exportWaitInMillis: DEFAULT_EXPORT_WAIT,
@@ -3,3 +3,7 @@ import { FetchHttpClient } from './net/FetchClient.js';
3
3
  const httpClient = new FetchHttpClient();
4
4
  const Chargebee = CreateChargebee(httpClient);
5
5
  export default Chargebee;
6
+ // Export webhook utilities
7
+ export { WebhookEventType, WebhookContentType, } from './resources/webhook/handler.js';
8
+ export { basicAuthValidator } from './resources/webhook/auth.js';
9
+ export { WebhookError, WebhookAuthenticationError, WebhookPayloadValidationError, WebhookPayloadParseError, } from './resources/webhook/handler.js';
@@ -8,7 +8,7 @@ export const Environment = {
8
8
  hostSuffix: '.chargebee.com',
9
9
  apiPath: '/api/v2',
10
10
  timeout: DEFAULT_TIME_OUT,
11
- clientVersion: 'v3.23.0',
11
+ clientVersion: 'v3.23.1',
12
12
  port: DEFAULT_PORT,
13
13
  timemachineWaitInMillis: DEFAULT_TIME_MACHINE_WAIT,
14
14
  exportWaitInMillis: DEFAULT_EXPORT_WAIT,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chargebee",
3
- "version": "3.23.0",
3
+ "version": "3.23.1",
4
4
  "description": "A library for integrating with Chargebee.",
5
5
  "scripts": {
6
6
  "prepack": "npm install && npm run build",