V3
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-builderinto@getcronit/pylon-dev:- Removed the
pylon-builderpackage. - The builder now uses
esbuildwatch mode for faster and more efficient development. - Implemented
pm2for process management, restarting the server automatically after builds, and logging withconsola.
- Removed the
-
Overhaul of the authentication system:
- Introduced the
useAuthplugin, 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]
- Introduced the
Minor Changes:
-
Enhancements to the plugin system:
- Extended the plugin system with setup, middleware, and build functions.
- Integrated the viewer via a built-in
useViewerplugin. - Custom plugins can now access the app instance and register routes, middleware, and custom build steps.
-
New
usePagesplugin:- 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
consolafor 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.
- Used
-
Bug fix:
- Fixed broken field descriptions in schema parsing.
These updates improve the overall functionality, performance, and developer experience of the @getcronit/pylon packages.
🦋 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
🚀 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 ↗︎ |