pylon icon indicating copy to clipboard operation
pylon copied to clipboard

V3

Open schettn opened this issue 11 months ago • 2 comments

This pull request includes significant updates to the @getcronit/pylon packages, introducing major changes and new features, as well as some minor improvements and bug fixes. The most important changes include the integration of @getcronit/pylon-builder into @getcronit/pylon-dev, enhancements to the authentication system, and improvements to the plugin system.

Major Changes:

  • Integration of @getcronit/pylon-builder into @getcronit/pylon-dev:

    • Removed the pylon-builder package.
    • The builder now uses esbuild watch mode for faster and more efficient development.
    • Implemented pm2 for process management, restarting the server automatically after builds, and logging with consola.
  • Overhaul of the authentication system:

    • Introduced the useAuth plugin, which automatically sets up authentication routes (/auth/login, /auth/callback, /auth/logout), manages token cookies, and enhances role-based route protection.
    • Updated documentation to reflect the new authentication system and its configuration. [1] [2]

Minor Changes:

  • Enhancements to the plugin system:

    • Extended the plugin system with setup, middleware, and build functions.
    • Integrated the viewer via a built-in useViewer plugin.
    • Custom plugins can now access the app instance and register routes, middleware, and custom build steps.
  • New usePages plugin:

    • Added support for file-based (Fullstack React) routing.
  • Option to disable playground and introspection:

    • Added a configuration option to disable the playground and introspection in the Pylon configuration.

Patch Changes:

  • Fixes and improvements in create-pylon:

    • Used consola for clearer interactive prompts and logs.
    • Removed certain flags in favor of the GQty CLI.
    • Improved package manager detection and dependency installation.
    • Enhanced error handling and messaging.
  • Bug fix:

    • Fixed broken field descriptions in schema parsing.

These updates improve the overall functionality, performance, and developer experience of the @getcronit/pylon packages.

schettn avatar Feb 19 '25 18:02 schettn

🦋 Changeset detected

Latest commit: eebcc06b20e2b45fd9717fa0911912f568b21784

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

This PR includes changesets to release 3 packages
Name Type
@getcronit/pylon-dev Major
@getcronit/pylon Major
create-pylon Patch

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

changeset-bot[bot] avatar Feb 19 '25 18:02 changeset-bot[bot]

🚀 Snapshot Release (canary)

The latest changes of this PR are available as canary on npm (based on the declared changesets):

Package Version Info
create-pylon 1.1.5-canary-20251114081320.eebcc06b20e2b45fd9717fa0911912f568b21784 npm ↗︎ unpkg ↗︎
@getcronit/pylon 3.0.0-canary-20251114081320.eebcc06b20e2b45fd9717fa0911912f568b21784 npm ↗︎ unpkg ↗︎
@getcronit/pylon-dev 2.0.0-canary-20251114081320.eebcc06b20e2b45fd9717fa0911912f568b21784 npm ↗︎ unpkg ↗︎

github-actions[bot] avatar Feb 19 '25 18:02 github-actions[bot]