Skip to content

chore(license): move generators to MIT and remove federation generator - #455

Merged
boyney123 merged 1 commit into
mainfrom
chore/mit-license
Oct 13, 2026
Merged

boyney123 merged 1 commit into
mainfrom
chore/mit-license

Conversation

@boyney123

Copy link
Copy Markdown
Contributor

What This PR Does

Moves every generator in this repo from the AGPL-3.0 / commercial dual license to the MIT license (Copyright EventCatalog Ltd). The generators no longer need a license key to run. It also removes @eventcatalog/generator-federation, because federation is now part of EventCatalog core.

Changes Overview

Key Changes

  • License
    • Replaces the dual license with MIT in the root LICENSE.
    • Deletes LICENSE-OPENSOURCE.md and LICENSE-COMMERCIAL.md.
    • Adds a LICENSE file to each package, so the published npm tarballs include it.
    • Sets "license": "MIT" in every package package.json (they said ISC or Dual License before).
  • License-key enforcement removed
    • Deletes shared/checkLicense.ts and the @eventcatalog/license dependency.
    • Removes the checkLicense() calls and EVENTCATALOG_LICENSE_KEY_* lookups from all 10 generators. The package update check stays.
    • Removes the licenseKey option from the generator types and zod schemas.
    • Removes the checkLicense mocks from the tests.
  • Federation removed
    • Deletes packages/generator-federation, examples/generator-federation, the federation images, and the federation .gitignore entries and README links.
  • Docs
    • Replaces the "Commercial Use" sections with an MIT "License" section.
    • Removes the license-key setup steps from the package READMEs, example READMEs and .env-example files.
    • Repoints the license badge links to this repo.
  • Changeset
    • Adds a minor bump for all 10 generators.

How It Works

Each generator called checkLicense(pkgName, key) at startup. That call ended the process when no valid plugin key or Scale key was found. The call and its helper are gone, so the generators now go straight to checkForPackageUpdate and then generate.

Breaking Changes

None for users:

  • A licenseKey option left in eventcatalog.config.js is ignored. The asyncapi and graphql zod schemas are not strict, so the unknown key is dropped.
  • EVENTCATALOG_LICENSE_KEY_* env vars are no longer read.

Additional Notes

  • EVENTCATALOG_SCALE_LICENSE_KEY and the "EventCatalog Starter" notes stay in the chat examples. Those are for EventCatalog core features (chat), not for the generators.
  • @eventcatalog/generator-federation is still on npm. You may want to npm deprecate it and point users to core federation.
  • Docs on eventcatalog.dev that mention plugin license keys will need a separate update.
  • Verified: pnpm run build passes, and CI=true pnpm run test passes for all 10 packages.

@changeset-bot

changeset-bot Bot commented Oct 13, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 8a7c2aa

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 10 packages
Name Type
@eventcatalog/generator-amazon-apigateway Minor
@eventcatalog/generator-apicurio Minor
@eventcatalog/generator-asyncapi Minor
@eventcatalog/generator-aws-glue Minor
@eventcatalog/generator-azure-schema-registry Minor
@eventcatalog/generator-confluent-schema-registry Minor
@eventcatalog/generator-eventbridge Minor
@eventcatalog/generator-github Minor
@eventcatalog/generator-graphql Minor
@eventcatalog/generator-openapi Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@boyney123
boyney123 merged commit b182c71 into main Oct 13, 2026
8 checks passed
@CLAassistant

CLAassistant commented Oct 13, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants