v0.72.99
·
1680 commits
to main
since this release
Changelog
✨ Features
- env: the framework reads config/env.ts, instead of the app declaring it (c786e79) (by Chris chrisbreuer93@gmail.com)
- email: check template names against the templates that exist (917a14a) (by Chris chrisbreuer93@gmail.com)
- server: one name-to-file map per registry, generated for the runtime (dcd0749) (by Chris chrisbreuer93@gmail.com)
- queue: check dispatched job names against the jobs on disk (8255ca9) (by Chris chrisbreuer93@gmail.com) (#2225)
- auth: derive the gate and model registries from what exists (196c1c7) (by Chris chrisbreuer93@gmail.com)
- auth: defineGates, and a policy map typed against models and policies (0fa7e53) (by Chris chrisbreuer93@gmail.com)
- actions: generate the middleware class registry into actions.d.ts (3f0cc27) (by Chris chrisbreuer93@gmail.com)
- router: type the middleware alias map against the classes on disk (793562c) (by Chris chrisbreuer93@gmail.com)
- actions: generate the listener-name registry into actions.d.ts (01371f0) (by Chris chrisbreuer93@gmail.com)
- events: type app/Events.ts against real event and listener names (9a09f21) (by Chris chrisbreuer93@gmail.com)
- cloud: check an attach against the box before deploying onto it (#2379) (f102f57) (by Glenn Michael Torregosa gtorregosa@gmail.com) (#2379, #2379, #191)
- cloud: a read-only inventory of what each server is hosting (#2378) (6730837) (by Glenn Michael Torregosa gtorregosa@gmail.com) (#2378, #2378, #2342)
🐛 Bug Fixes
- dashboard: the sidebar role map reached the client double-encoded (a081cf8) (by Chris chrisbreuer93@gmail.com)
- forms,cms: type the two contracts these templates render against (60cd01a) (by Chris chrisbreuer93@gmail.com)
- storefront: the cart, checkout and order pages never read their own request (133a6c6) (by Chris chrisbreuer93@gmail.com)
- typecheck: check every view tree, not just the first (0f4dbd6) (by Chris chrisbreuer93@gmail.com)
- dashboard: declare the values crossing the server-to-client bridge (aa1b37e) (by Chris chrisbreuer93@gmail.com)
- dashboard: narrow the values a call site cannot narrow itself (3e9e93f) (by Chris chrisbreuer93@gmail.com)
- dashboard: type the implicitly-any parameters across the default components (5fa7263) (by Chris chrisbreuer93@gmail.com)
- types: map /__deps/charts.js to the module the dev server bundles (e275bec) (by Chris chrisbreuer93@gmail.com)
- dashboard: type the component script blocks, and fix two dead slots (428e326) (by Chris chrisbreuer93@gmail.com)
- dashboard: leave the traffic lights to the platform (fe1b1cb) (by Chris chrisbreuer93@gmail.com)
- dashboard: type the script blocks in the default components (9a9a421) (by Chris chrisbreuer93@gmail.com)
- views: type the app's stx script blocks, and fix a dead route param (a7a717d) (by Chris chrisbreuer93@gmail.com)
- actions: regenerate the name registries when their sources change (db4208e) (by Chris chrisbreuer93@gmail.com)
- types: let stx declare its own globals, and delete our copy of them (34f42f3) (by Chris chrisbreuer93@gmail.com)
- config: type the crosswind config, which was checked against nothing (c028b60) (by Chris chrisbreuer93@gmail.com)
- storage: Storage.disk() threw in a stock app (50958c3) (by Chris chrisbreuer93@gmail.com)
- types: delete the attributes union nothing writes and nothing reads (8377193) (by Chris chrisbreuer93@gmail.com)
- browser: drop 291 declared globals that do not exist (d193fab) (by Chris chrisbreuer93@gmail.com)
- server: the global declarations describe what actually gets injected (b65f30a) (by Chris chrisbreuer93@gmail.com)
- actions: stop calling the env type generator (ad0a73e) (by Chris chrisbreuer93@gmail.com)
- server: sort the registries by bytes, not by locale (3b28ce6) (by Chris chrisbreuer93@gmail.com)
- actions: buddy generate:types refreshes the name registries (ba06849) (by Chris chrisbreuer93@gmail.com)
- auth: Gate.policy takes a model that exists (f723782) (by Chris chrisbreuer93@gmail.com)
- three framework jobs were dispatched under names that do not exist (38b374c) (by Chris chrisbreuer93@gmail.com)
- config: drop the second defineModel, and type defineSms (e14e591) (by Chris chrisbreuer93@gmail.com)
- types: ModelNames listed half the models, TableNames listed two twice (ef0e468) (by Chris chrisbreuer93@gmail.com)
- auth: app/Gates.ts was read by a function nothing called (510c242) (by Chris chrisbreuer93@gmail.com)
- router: three ways a middleware reference did not mean what it said (1003183) (by Chris chrisbreuer93@gmail.com)
- events: stop registering app/Events.ts listeners twice in dev (d34e78a) (by Chris chrisbreuer93@gmail.com)
⚡ Performance Improvements
- resolvers: resolve names through the registry instead of probing disk (ca8446e) (by Chris chrisbreuer93@gmail.com)
♻️ Code Refactoring
- components: rewrite the Counter example in signals (3e02017) (by Chris chrisbreuer93@gmail.com)
- charts: derive the dashboard chart types from the Chart class (a5c76ca) (by Chris chrisbreuer93@gmail.com)
- dashboard: drop 35 casts that no longer suppress anything (a3c5d96) (by Chris chrisbreuer93@gmail.com)
- types: derive every name type, and stop generating declarations (d081fd7) (by Chris chrisbreuer93@gmail.com)
- app: define authorization with defineGates (3dd0dca) (by Chris chrisbreuer93@gmail.com)
- app: define middleware aliases with defineMiddleware (f10c2f9) (by Chris chrisbreuer93@gmail.com)
- app: define the event map with defineEvents (d3d7309) (by Chris chrisbreuer93@gmail.com)
- types: let @stacksjs/events own the event types (11dfd2a) (by Chris chrisbreuer93@gmail.com)
📝 Documentation
- env: declaring a variable in config/env.ts is the whole step (5c33d81) (by Chris chrisbreuer93@gmail.com)
- the name types are derived, not written into a declaration (600187a) (by Chris chrisbreuer93@gmail.com)
- middleware references, gates, and checked job names (ba5fccf) (by Chris chrisbreuer93@gmail.com) (#1863)
- events: document defineEvents, defineListener and the typed map (076662b) (by Chris chrisbreuer93@gmail.com)
✅ Tests
- desktop: cover the app-owned launcher, and document it (d3fe6ae) (by Chris chrisbreuer93@gmail.com)
- dashboard: fix the two failing contract tests (144b8fe) (by Chris chrisbreuer93@gmail.com)
- server: a declared global has to exist, both ways round (142a757) (by Chris chrisbreuer93@gmail.com)
- server: assert the name maps and the resolvers cannot disagree (1800aad) (by Chris chrisbreuer93@gmail.com)
- config: assert defineModel is not exported here (c74d4c2) (by Chris chrisbreuer93@gmail.com)
👷 Build System
- add typecheck:views, so the .stx surface is checked at all (74e38ef) (by Chris chrisbreuer93@gmail.com)
🔧 Chores
- release v0.72.99 (eb03f23) (by Chris chrisbreuer93@gmail.com)
- deps: stx 0.2.245 (6305ffa) (by Chris chrisbreuer93@gmail.com)
- deps: stx 0.2.244 (cbc7084) (by Chris chrisbreuer93@gmail.com)
Contributors
- Chris chrisbreuer93@gmail.com
- Glenn Michael Torregosa gtorregosa@gmail.com