Skip to content

Releases: supabase-community/seed

v0.97.9

Choose a tag to compare

@avallete avallete released this 05 May 18:02

What's Changed

Full Changelog: v0.97.6...v0.97.9

v0.97.6

Choose a tag to compare

@avallete avallete released this 02 May 16:34
6adf741

What's Changed

  • fix(postgres): unique constraints fetching for index defined constraints by @avallete in #163

Full Changelog: v0.97.5...v0.97.6

v0.97.5

Choose a tag to compare

@avallete avallete released this 02 May 16:30

Full Changelog: v0.97.4...v0.97.5

v0.97.4

Choose a tag to compare

@avallete avallete released this 02 May 16:30

What's Changed

Full Changelog: v0.97.3...v0.97.4

v0.97.3

Choose a tag to compare

@avallete avallete released this 02 May 16:30

What's Changed

  • UX/Copy improvements for npx @snaplet/seed init by @justinvdm in #161

Full Changelog: v0.97.2...v0.97.3

v0.97.2

Choose a tag to compare

@avallete avallete released this 01 May 15:51

What's Changed

Full Changelog: v0.97.0...v0.97.2

v0.97.0

Choose a tag to compare

@avallete avallete released this 01 May 15:51

Breaking Changes 🚨

  • .snaplet/config.json new "adapter" key: We changed the way we detect the adapter/dialect that you're using for generating your Seed Client for better integrations.
    The adapter is now persisted to .snaplet/config.json.

    You can run npx @snaplet/seed init again which should update your .snaplet/config.json file with the adapter you're using.

    If you want to do it manually, you can add the adapter key to your .snaplet/config.json file.

    {
      // possible values: "prisma" | "postgres" | "pg" | "better-sqlite3" | "mysql2"
      "adapter": "prisma"
    }
  • Deeper Prisma integration: When using Prisma adapter, we now parse your prisma.schema and automatically reflect your model and field names in the generated Seed Client.

    To apply this change, regenerate your Seed Client using npx @snaplet/seed sync.

  • Snaplet AI for better data: We've improved our AI workflow to provide the best data for your seeds. It also means that the data generated might be different from the previous versions.

New Features 🎉

  • MySQL support 🐬: We now support MySQL databases! You can use the mysql2 adapter to connect to your database.
  • Global connect strategy: You can now pass a connect option when creating the Seed Client to automatically connect all generated data to the global store.
    const seed = await createSeedClient({ connect: true })
    
    await seed.users(x => x(2))
    
    // all the posts will be connected to the previously created users in the seed.$store
    await seed.posts(x => x(2))

Improvements 🛠️

  • Optional login: Login is now optional, you can use @snaplet/seed without an account in Snaplet Cloud.

v0.96.1

Choose a tag to compare

@avallete avallete released this 01 May 15:51

What's Changed

  • improvements(adapters): prisma.schema is used to define the seed client aliases by @jgoux in #140
  • feat: Track version as property in analytics events by @justinvdm in #143

Full Changelog: v0.96.0...v0.96.1

v0.96.0

Choose a tag to compare

@jgoux jgoux released this 23 Apr 14:28

What's Changed

Full Changelog: v0.92.2...v0.96.0

v0.92.2

Choose a tag to compare

@jgoux jgoux released this 10 Apr 14:23
2f82b13

What's Changed

  • fix(types): correct path to typed config by @jgoux in #104
  • fix(cli): use the file:// protocol to link files in the terminal by @jgoux in #105

Full Changelog: v0.92.1...v0.92.2