Skip to content

refactor: monorepo - standalone sync-engine lib#138

Merged
kevcodez merged 2 commits intomainfrom
pnpm-workspaces
Jun 1, 2025
Merged

refactor: monorepo - standalone sync-engine lib#138
kevcodez merged 2 commits intomainfrom
pnpm-workspaces

Conversation

@kevcodez
Copy link
Copy Markdown
Collaborator

@kevcodez kevcodez commented May 31, 2025

Refactors the repo to a monorepo and publishes @supabase/stripe-sync-engine as individual package. For the docker image, there are no breaking changes.

The standalone package supports both ESM and CJS and can be used in any JavaScript based server environment, including Supabase Edge Functions, Node/Deno servers.

Docs will be part of a separate PR

@kevcodez kevcodez marked this pull request as ready for review June 1, 2025 05:18
@kevcodez kevcodez changed the base branch from pass-through-config to main June 1, 2025 15:19
@snyk-io
Copy link
Copy Markdown

snyk-io Bot commented Jun 1, 2025

Snyk checks have failed. 9 issues have been found so far.

Icon Severity Issues
Critical 0
High 0
Medium 9
Low 0

code/snyk check is complete. 9 issues have been found. (View Details)

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

Comment thread packages/sync-engine/src/stripeSync.ts Outdated
Comment thread packages/sync-engine/src/stripeSync.ts
Comment thread packages/sync-engine/src/stripeSync.ts Outdated
Comment thread packages/sync-engine/src/stripeSync.ts
Comment thread packages/sync-engine/src/stripeSync.ts Outdated
Comment thread packages/sync-engine/src/stripeSync.ts
Comment thread packages/sync-engine/src/stripeSync.ts Outdated
Comment thread packages/sync-engine/src/stripeSync.ts
Comment thread packages/sync-engine/src/stripeSync.ts
Refactor to having a single class for syncing Stripe entities - while the class itself is a bit large, it avoids having to do parameter drilling through many methods and actually reduces overall code by quite a bit.

Additionally
- Reduced boilerplate for backfills (generic function)
- Reduced boilerplate for deletions
- Reduced boilerplate for auto-expanding lists
- Migrated from jest to vitest
- Sped up CI
- Config option to enable/disable automatic backfills
- Configurable max connections
- Migrate to pnpm
Refactors the repo to a monorepo and publishes @supabase/stripe-sync-engine as individual package. For the docker image, there are no breaking changes.

The standalone package supports both ESM and CJS and can be used in any JavaScript based server environment, including Supabase Edge Functions, Node/Deno servers.
Comment thread packages/sync-engine/src/stripeSync.ts
@kevcodez kevcodez merged commit 53cb3d2 into main Jun 1, 2025
1 of 2 checks passed
@kevcodez kevcodez deleted the pnpm-workspaces branch June 1, 2025 16:49
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2025

🎉 This PR is included in version 0.36.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

tonyxiao pushed a commit that referenced this pull request Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants