Skip to content

Commit 21e60e9

Browse files
authored
Merge pull request #667 from cipherstash/chore/remove-legacy-drizzle-package
chore!: remove the legacy @cipherstash/drizzle package
2 parents 7114147 + c6915f0 commit 21e60e9

37 files changed

Lines changed: 36 additions & 6182 deletions

‎.changeset/drizzle-legacy-readme-pointer.md‎

Lines changed: 0 additions & 7 deletions
This file was deleted.

‎.changeset/pre.json‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
"@cipherstash/supabase-worker-example": "0.0.0",
99
"@cipherstash/bench": "0.0.4",
1010
"stash": "0.17.1",
11-
"@cipherstash/drizzle": "3.0.3",
1211
"@cipherstash/migrate": "0.2.0",
1312
"@cipherstash/nextjs": "4.1.1",
1413
"@cipherstash/prisma-next": "0.3.2",
@@ -26,7 +25,6 @@
2625
"adapter-split-skills",
2726
"cli-anonymous-telemetry",
2827
"cli-eql-v3-single-bundle",
29-
"drizzle-legacy-readme-pointer",
3028
"eql-v3-adapter-type-robustness",
3129
"eql-v3-bigint-domains",
3230
"eql-v3-bundle-from-package",
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
'stash': patch
3+
'@cipherstash/stack-drizzle': patch
4+
---
5+
6+
The legacy `@cipherstash/drizzle` package (the `@cipherstash/protect`-based
7+
Drizzle integration) is removed from the repository and the release train —
8+
`@cipherstash/protect` is sunsetting at Stack 1.0, and the package's successor
9+
is `@cipherstash/stack-drizzle`. Already-published versions remain installable
10+
from npm (deprecated, pointing here); the git history preserves the source for
11+
any emergency maintenance. The `stash-drizzle` skill and the
12+
`@cipherstash/stack-drizzle` README now state the deprecation explicitly so
13+
nobody (human or agent) installs the legacy package by mistake.

‎.github/workflows/rebuild-docs.yml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
push:
55
tags:
66
- '@cipherstash/protect@*'
7-
- '@cipherstash/drizzle@*'
87

98
jobs:
109
trigger-docs-rebuild:

‎.github/workflows/tests.yml‎

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -168,15 +168,6 @@ jobs:
168168
echo "CS_CLIENT_KEY=${{ secrets.CS_CLIENT_KEY }}" >> ./packages/protect-dynamodb/.env
169169
echo "CS_CLIENT_ACCESS_KEY=${{ secrets.CS_CLIENT_ACCESS_KEY }}" >> ./packages/protect-dynamodb/.env
170170
171-
- name: Create .env file in ./packages/drizzle/
172-
run: |
173-
touch ./packages/drizzle/.env
174-
echo "CS_WORKSPACE_CRN=${{ vars.CS_WORKSPACE_CRN }}" >> ./packages/drizzle/.env
175-
echo "CS_CLIENT_ID=${{ vars.CS_CLIENT_ID }}" >> ./packages/drizzle/.env
176-
echo "CS_CLIENT_KEY=${{ secrets.CS_CLIENT_KEY }}" >> ./packages/drizzle/.env
177-
echo "CS_CLIENT_ACCESS_KEY=${{ secrets.CS_CLIENT_ACCESS_KEY }}" >> ./packages/drizzle/.env
178-
echo "DATABASE_URL=postgres://cipherstash:password@localhost:5432/cipherstash" >> ./packages/drizzle/.env
179-
180171
# Run TurboRepo tests
181172
- name: Run tests
182173
run: pnpm run test
@@ -388,22 +379,13 @@ jobs:
388379
echo "CS_CLIENT_KEY=${{ secrets.CS_CLIENT_KEY }}" >> ./packages/protect-dynamodb/.env
389380
echo "CS_CLIENT_ACCESS_KEY=${{ secrets.CS_CLIENT_ACCESS_KEY }}" >> ./packages/protect-dynamodb/.env
390381
391-
- name: Create .env file in ./packages/drizzle/
392-
run: |
393-
touch ./packages/drizzle/.env
394-
echo "CS_WORKSPACE_CRN=${{ vars.CS_WORKSPACE_CRN }}" >> ./packages/drizzle/.env
395-
echo "CS_CLIENT_ID=${{ vars.CS_CLIENT_ID }}" >> ./packages/drizzle/.env
396-
echo "CS_CLIENT_KEY=${{ secrets.CS_CLIENT_KEY }}" >> ./packages/drizzle/.env
397-
echo "CS_CLIENT_ACCESS_KEY=${{ secrets.CS_CLIENT_ACCESS_KEY }}" >> ./packages/drizzle/.env
398-
echo "DATABASE_URL=postgres://cipherstash:password@localhost:5432/cipherstash" >> ./packages/drizzle/.env
399-
400382
# Build with Node (turbo/tsup need Node), then run tests with Bun
401383
- name: Build packages
402384
run: pnpm turbo build --filter './packages/*'
403385

404386
- name: Run tests with Bun
405387
run: |
406-
for dir in packages/schema packages/protect packages/stack packages/protect-dynamodb packages/drizzle packages/stack-forge; do
388+
for dir in packages/schema packages/protect packages/stack packages/protect-dynamodb packages/stack-forge; do
407389
if [ -f "$dir/vitest.config.ts" ] || [ -f "$dir/package.json" ]; then
408390
echo "--- Testing $dir ---"
409391
(cd "$dir" && bunx --bun vitest run) || true

‎AGENTS.md‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ If these variables are missing, tests that require live encryption will fail or
8585
- `packages/stack-drizzle`: Drizzle ORM integration (`@cipherstash/stack-drizzle`), depends on `@cipherstash/stack` — EQL v2 (`.`) and EQL v3 (`./v3`). Split out of `@cipherstash/stack`.
8686
- `packages/stack-supabase`: Supabase integration (`@cipherstash/stack-supabase`), depends on `@cipherstash/stack` — `encryptedSupabase` (v2) and `encryptedSupabaseV3` (v3). Split out of `@cipherstash/stack`.
8787
- `packages/schema`: Schema builder utilities and types (`encryptedTable`, `encryptedColumn`, `encryptedField`)
88-
- `packages/drizzle`: Drizzle ORM integration (`encryptedType`, `extractEncryptionSchema`, `createEncryptionOperators`)
8988
- `packages/nextjs`: Next.js helpers and Clerk integration (`./clerk` export)
9089
- `packages/protect-dynamodb`: DynamoDB helpers (`encryptedDynamoDB`)
9190
- `packages/utils`: Shared config (`utils/config`) and logger (`utils/logger`)

‎SECURITY.md‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ This repository is the CipherStash Stack monorepo for JavaScript/TypeScript. It
1313
| `stash` | CipherStash CLI |
1414
| `@cipherstash/protect` | Core encryption library (re-exported via `@cipherstash/stack`) |
1515
| `@cipherstash/schema` | Schema builder utilities |
16-
| `@cipherstash/drizzle` | Drizzle ORM integration |
1716
| `@cipherstash/nextjs` | Next.js helpers |
1817
| `@cipherstash/protect-dynamodb` | DynamoDB helpers |
1918
| `@cipherstash/migrate` | Plaintext-to-encrypted column migration tooling |

‎e2e/package.json‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
},
1010
"dependencies": {
1111
"stash": "workspace:*",
12-
"@cipherstash/drizzle": "workspace:*",
1312
"@cipherstash/protect": "workspace:*",
1413
"@cipherstash/stack": "workspace:*",
1514
"@cipherstash/wizard": "workspace:*"

‎e2e/tests/package-managers.e2e.test.ts‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,9 @@ const BIN = {
2626
cli: resolve(REPO_ROOT, 'packages/cli/dist/bin/stash.js'),
2727
wizard: resolve(REPO_ROOT, 'packages/wizard/dist/bin/wizard.js'),
2828
protect: resolve(REPO_ROOT, 'packages/protect/dist/bin/stash.js'),
29-
drizzleGen: resolve(
30-
REPO_ROOT,
31-
'packages/drizzle/dist/bin/generate-eql-migration.js',
32-
),
29+
// The legacy @cipherstash/drizzle `generate-eql-migration` bin is gone with
30+
// the package (protect sunsets at 1.0; @cipherstash/stack-drizzle is the
31+
// successor).
3332
} as const
3433

3534
const UA: Record<PackageManager, string> = {

‎packages/drizzle/.npmignore‎

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)