diff --git a/.release-please-manifest.json b/.release-please-manifest.json index df0c791..8e3d955 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.30.1" + ".": "0.31.0" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 4e6dd52..0ffe855 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,39 @@ # Changelog +## [0.31.0](https://github.com/meteroid-oss/meteroid-node/compare/v0.30.1...v0.31.0) (2026-10-28) + + +### ⚠ BREAKING CHANGES + +* **api:** update SDKs to meteroid 0.1.0 ([#15](https://github.com/meteroid-oss/meteroid-node/issues/15)) +* **api:** `GET /api/v1/coupons`: added `#/components/schemas/CreditDiscount` to the `data/items/discount` response property `oneOf` list for the response status `200` +* **api:** `GET /api/v1/coupons/{coupon_id}`: added `#/components/schemas/CreditDiscount` to the `discount` response property `oneOf` list for the response status `200` +* **api:** `GET /api/v1/plans`: added `#/components/schemas/CreditPlanFee` to the `data/items/price_components/items/fee/oneOf[#/components/schemas/Fee]/` response property `oneOf` list for the response status `200` +* **api:** `GET /api/v1/plans/{plan_id}`: added `#/components/schemas/CreditPlanFee` to the `price_components/items/fee/oneOf[#/components/schemas/Fee]/` response property `oneOf` list for the response status `200` +* **api:** `GET /api/v1/products`: added `#/components/schemas/CreditFeeStructure` to the `data/items/fee_structure` response property `oneOf` list for the response status `200` +* **api:** `GET /api/v1/products/{product_id}`: added `#/components/schemas/CreditFeeStructure` to the `fee_structure` response property `oneOf` list for the response status `200` +* **api:** `GET /api/v1/subscriptions/{subscription_id}`: added `#/components/schemas/CreditDiscount` to the `applied_coupons/items/coupon/discount` response property `oneOf` list for the response status `200` +* **api:** `GET /api/v1/subscriptions/{subscription_id}`: added `#/components/schemas/CreditFee` to the `add_ons/items/fee` response property `oneOf` list for the response status `200` +* **api:** `GET /api/v1/subscriptions/{subscription_id}`: added `#/components/schemas/CreditFee` to the `components/items/fee` response property `oneOf` list for the response status `200` +* **api:** `PATCH /api/v1/coupons/{coupon_id}`: added the new required request property `discount/oneOf[#/components/schemas/CouponDiscount]/oneOf[#/components/schemas/FixedDiscount]/type` +* **api:** 90 more breaking changes + +### Features + +* **api:** `GET /api/v1/coupons/{coupon_id}`: added `#/components/schemas/CreditDiscount` to the `discount` response property `oneOf` list for the response status `200` ([ca1faf5](https://github.com/meteroid-oss/meteroid-node/commit/ca1faf51872216120ee345823490251c9417278e)) +* **api:** `GET /api/v1/coupons`: added `#/components/schemas/CreditDiscount` to the `data/items/discount` response property `oneOf` list for the response status `200` ([ca1faf5](https://github.com/meteroid-oss/meteroid-node/commit/ca1faf51872216120ee345823490251c9417278e)) +* **api:** `GET /api/v1/plans/{plan_id}`: added `#/components/schemas/CreditPlanFee` to the `price_components/items/fee/oneOf[#/components/schemas/Fee]/` response property `oneOf` list for the response status `200` ([ca1faf5](https://github.com/meteroid-oss/meteroid-node/commit/ca1faf51872216120ee345823490251c9417278e)) +* **api:** `GET /api/v1/plans`: added `#/components/schemas/CreditPlanFee` to the `data/items/price_components/items/fee/oneOf[#/components/schemas/Fee]/` response property `oneOf` list for the response status `200` ([ca1faf5](https://github.com/meteroid-oss/meteroid-node/commit/ca1faf51872216120ee345823490251c9417278e)) +* **api:** `GET /api/v1/products/{product_id}`: added `#/components/schemas/CreditFeeStructure` to the `fee_structure` response property `oneOf` list for the response status `200` ([ca1faf5](https://github.com/meteroid-oss/meteroid-node/commit/ca1faf51872216120ee345823490251c9417278e)) +* **api:** `GET /api/v1/products`: added `#/components/schemas/CreditFeeStructure` to the `data/items/fee_structure` response property `oneOf` list for the response status `200` ([ca1faf5](https://github.com/meteroid-oss/meteroid-node/commit/ca1faf51872216120ee345823490251c9417278e)) +* **api:** `GET /api/v1/subscriptions/{subscription_id}`: added `#/components/schemas/CreditDiscount` to the `applied_coupons/items/coupon/discount` response property `oneOf` list for the response status `200` ([ca1faf5](https://github.com/meteroid-oss/meteroid-node/commit/ca1faf51872216120ee345823490251c9417278e)) +* **api:** `GET /api/v1/subscriptions/{subscription_id}`: added `#/components/schemas/CreditFee` to the `add_ons/items/fee` response property `oneOf` list for the response status `200` ([ca1faf5](https://github.com/meteroid-oss/meteroid-node/commit/ca1faf51872216120ee345823490251c9417278e)) +* **api:** `GET /api/v1/subscriptions/{subscription_id}`: added `#/components/schemas/CreditFee` to the `components/items/fee` response property `oneOf` list for the response status `200` ([ca1faf5](https://github.com/meteroid-oss/meteroid-node/commit/ca1faf51872216120ee345823490251c9417278e)) +* **api:** `PATCH /api/v1/coupons/{coupon_id}`: added the new required request property `discount/oneOf[#/components/schemas/CouponDiscount]/oneOf[#/components/schemas/FixedDiscount]/type` ([ca1faf5](https://github.com/meteroid-oss/meteroid-node/commit/ca1faf51872216120ee345823490251c9417278e)) +* **api:** 90 more breaking changes ([ca1faf5](https://github.com/meteroid-oss/meteroid-node/commit/ca1faf51872216120ee345823490251c9417278e)) +* **api:** update SDKs to meteroid 0.1.0 ([#15](https://github.com/meteroid-oss/meteroid-node/issues/15)) ([ca1faf5](https://github.com/meteroid-oss/meteroid-node/commit/ca1faf51872216120ee345823490251c9417278e)) +* **api:** update the API definitions ([ca1faf5](https://github.com/meteroid-oss/meteroid-node/commit/ca1faf51872216120ee345823490251c9417278e)) + ## [0.30.1](https://github.com/meteroid-oss/meteroid-node/compare/v0.30.0...v0.30.1) (2026-10-16) diff --git a/package.json b/package.json index 6649dd6..62ce9a5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@meteroid/node", - "version": "0.30.1", + "version": "0.31.0", "description": "Official Node.js / TypeScript SDK for Meteroid, the open-source billing platform: subscriptions, invoicing, usage-based billing and webhooks.", "keywords": [ "meteroid", diff --git a/src/request.ts b/src/request.ts index 44d1d62..da9b379 100644 --- a/src/request.ts +++ b/src/request.ts @@ -22,7 +22,7 @@ import { parseJson, stringifyJson } from "./json.js"; import { type Middleware, withMiddleware } from "./middleware.js"; import { EventStream, type MultipartBody, Stream, type UploadBody } from "./streaming.js"; -export const LIB_VERSION = "0.30.1"; // x-release-please-version +export const LIB_VERSION = "0.31.0"; // x-release-please-version const USER_AGENT = `meteroid-typescript/${LIB_VERSION}`; const DEFAULT_RETRIES = 2;