Skip to content

Commit 1426076

Browse files
authored
WorkOS emulator: support organizations.deleteOrganization (#12)
Add DELETE /organizations/:id (204 No Content), cascading to the org's memberships so a deleted org 404s and drops out of membership listings, matching real WorkOS. Release 0.13.3.
1 parent 79720b9 commit 1426076

26 files changed

Lines changed: 72 additions & 25 deletions

File tree

CHANGELOG.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,21 @@
11
# Changelog
22

3-
## 0.13.2
3+
## 0.13.3
44

55
<!-- release:start -->
66

77
### New Features
88

9-
- **Autumn `balances.check`** — the Autumn emulator now supports the SDK's `check()` call (`POST /v1/balances.check`). Access is computed from the same plan items and tracked usage that drive customer balances: unlimited and overage-allowed features always pass, metered features pass while remaining balance covers `required_balance` (default 1), and a feature the customer's plan does not carry is allowed with a `null` balance. The response carries the full balance object (`granted`, `remaining`, `usage`, `unlimited`, `overage_allowed`) in the shape autumn-js validates, and the route participates in fault injection and the request ledger like every other operation.
9+
- **WorkOS `organizations.deleteOrganization`** — the WorkOS emulator now supports the SDK's org delete (`DELETE /organizations/:id`), returning 204 No Content like the real API. Deletion cascades to the organization's memberships, so a subsequent `getOrganization` 404s and the org drops out of `listOrganizationMemberships`, matching real WorkOS.
1010

1111
<!-- release:end -->
1212

13+
## 0.13.2
14+
15+
### New Features
16+
17+
- **Autumn `balances.check`** — the Autumn emulator now supports the SDK's `check()` call (`POST /v1/balances.check`). Access is computed from the same plan items and tracked usage that drive customer balances: unlimited and overage-allowed features always pass, metered features pass while remaining balance covers `required_balance` (default 1), and a feature the customer's plan does not carry is allowed with a `null` balance. The response carries the full balance object (`granted`, `remaining`, `usage`, `unlimited`, `overage_allowed`) in the shape autumn-js validates, and the route participates in fault injection and the request ledger like every other operation.
18+
1319
## 0.13.1
1420

1521
### Fixes

packages/@emulators/adapter-next/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@emulators/adapter-next",
3-
"version": "0.13.2",
3+
"version": "0.13.3",
44
"license": "Apache-2.0",
55
"type": "module",
66
"main": "./dist/index.js",

packages/@emulators/apple/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@emulators/apple",
3-
"version": "0.13.2",
3+
"version": "0.13.3",
44
"license": "Apache-2.0",
55
"type": "module",
66
"main": "./dist/index.js",

packages/@emulators/autumn/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@emulators/autumn",
3-
"version": "0.13.2",
3+
"version": "0.13.3",
44
"license": "Apache-2.0",
55
"type": "module",
66
"main": "./dist/index.js",

packages/@emulators/aws/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@emulators/aws",
3-
"version": "0.13.2",
3+
"version": "0.13.3",
44
"license": "Apache-2.0",
55
"type": "module",
66
"main": "./dist/index.js",

packages/@emulators/clerk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@emulators/clerk",
3-
"version": "0.13.2",
3+
"version": "0.13.3",
44
"license": "Apache-2.0",
55
"type": "module",
66
"main": "./dist/index.js",

packages/@emulators/cloudflare/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@emulators/cloudflare",
3-
"version": "0.13.2",
3+
"version": "0.13.3",
44
"license": "Apache-2.0",
55
"type": "module",
66
"main": "./dist/index.js",

packages/@emulators/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@emulators/core",
3-
"version": "0.13.2",
3+
"version": "0.13.3",
44
"license": "Apache-2.0",
55
"type": "module",
66
"main": "./dist/index.js",

packages/@emulators/github/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@emulators/github",
3-
"version": "0.13.2",
3+
"version": "0.13.3",
44
"license": "Apache-2.0",
55
"type": "module",
66
"main": "./dist/index.js",

packages/@emulators/gitlab/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@emulators/gitlab",
3-
"version": "0.13.2",
3+
"version": "0.13.3",
44
"license": "Apache-2.0",
55
"type": "module",
66
"main": "./dist/index.js",

0 commit comments

Comments
 (0)