Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

What's New With 8.3.0

October 13, 2026

ColdBox 8.3.0 is a feature release focused on testing and route composition: real-browser testing of ColdBox applications on BoxLang, named route middleware with Router.registerMiddleware(), route metadata shared by a whole group(), and integration tests that now run route middleware exactly like a real request. It also hardens WireBox scope wiring under concurrency and fixes a set of engine-specific and scheduler bugs.

Major Highlights

🌐 Browser Testing With @browser (BoxLang)

Browser testing in ColdBox 8.3, in 45 seconds

There is no separate browser test class. Annotate any coldbox.system.testing.BaseTestCase spec with @browser, @browserProfile or @baseURL and TestBox attaches its browser support: browse(), this.playwright(), browserAvailable() and the retrying browser matchers. The spec still loads your application like any integration test, so it knows your routes, while it drives a real browser against your running application. BaseTestCase adds the named route helpers routeURL(), visitRoute() and assertRouteIs(), module routes included, and logged-in tests use bx-playwright saved sessions.

@appMapping( "/root" )
@browser
@baseURL( "http://127.0.0.1:8080" )
class extends="coldbox.system.testing.BaseTestCase" {

	function run() {
		describe( "Users", () => {
			it( "shows a user", () => {
				browse( ( page ) => {
					visitRoute( page, "users.show", { id : 5 } )
					assertRouteIs( page, "users.show", { id : 5 } )
					expect( page ).toSee( "User 5" )
				} )
			} )
		} )
	}

}
A spec using routeURL(), visitRoute() and assertRouteIs(), the browser following the routes, and a wrong route failure
Named routes in a browser spec, and the message of a wrong route
A spec saving a login session in beforeAll() and reusing it in browse(), a guest sent to the login page, and the passing run
Log in once with a saved session and reuse it in every spec

See the Browser Testing guide, including Named Routes and Authentication.

🏷️ Named Route Middleware: registerMiddleware()

Router.registerMiddleware() registers a closure, lambda, object instance or WireBox ID under a name, so routes and groups reference it by that name instead of repeating the target. A registered name works everywhere a middlewareGroup() name does: .middleware(), a group's middleware option and .withoutMiddleware(). Pass a struct of name : target pairs to register several at once.

Registering a name that already exists, including a middlewareGroup() name, throws Router.DuplicateMiddleware unless you pass force = true. Like middlewareGroup(), register names before the routes that reference them. This release also fixes passing a component instance directly to .middleware() on engines where isStruct() is true for components. See Registering Named Middleware.

🧩 Group Route Metadata: meta

group() now accepts a meta struct that every route inside the group inherits. Nested groups merge outer-first and a route's own .meta() values win on conflict, so one group can declare the metadata your middleware or security rules consume.

🧪 Integration Tests Run Route Middleware

BaseTestCase.execute(), and the get(), post() and other HTTP helpers built on it, now run route-scoped middleware registered with .middleware(), in the same order as a real request: after the global preProcess announcement and before the global postProcess announcement. A route protected by middleware is now protected in your integration tests too.

🔒 Thread-Safe WireBox Scope Wiring

Singleton, engine (application, session, server) and CacheBox scopes store an object before wiring it so circular dependencies resolve. Other threads could read that object before its dependencies were injected and get a half-wired instance. A single wiring lock per injector now makes other threads wait until wiring completes, while the wiring thread still resolves circular dependencies. Circular partners also stay marked as wiring until the outermost build completes, across all scopes.

⏰ Scheduler: onOneServer() Calendar Tasks No Longer Drift

Calendar tasks (everyDayAt(), everyHourAt(), everyWeekOn(), everyMonthOn(), everyYearOn() and the business-day helpers) combined with onOneServer() drifted to the scheduler's restart time after a restart. They now keep their configured wall-clock time. Plain every( n, unit ) tasks still sync with the cluster lock.

⚠️ Compatibility: CFScopes Renamed to EngineScopes

The WireBox scope class that stores objects in the application, session and server scopes was renamed from coldbox.system.ioc.scopes.CFScopes to coldbox.system.ioc.scopes.EngineScopes. The scope names you use in scope="session", scope="application", scope="server" or .into( this.SCOPES.SESSION ) are unchanged, so most applications are not affected.

⚠️ Breaking Change: Implicit Views Disabled by Default

coldbox.implicitViews now defaults to false. Handlers that relied on ColdBox automatically resolving a view from the event name, without calling event.setView(), will no longer render that view unless implicit views are explicitly enabled. To preserve the previous behavior, set coldbox.implicitViews = true in your config/ColdBox.bx or config/ColdBox.cfc; otherwise, update handlers to select their views explicitly with event.setView().

Release Notes

Changed

coldbox.implicitViews now defaults to false; applications that depend on convention-based implicit view resolution must explicitly set it to true or use event.setView().

Added

COLDBOX-1457 Browser testing for ColdBox apps: @browser, @browserProfile and @baseURL on BaseTestCase and the named route helpers routeURL(), visitRoute() and assertRouteIs() (BoxLang, TestBox 7.2.0+, bx-playwright) (#708, #720)

COLDBOX-1459 group() accepts a meta struct inherited by every route inside it; nested groups merge outer-first and a route's own meta() wins (#714)

COLDBOX-1460 Router.registerMiddleware() registers a closure, lambda, object instance or WireBox ID as named route middleware, singly or as a struct; duplicates throw Router.DuplicateMiddleware unless force = true (#719)

Fixed

COLDBOX-1459 BaseTestCase.execute() and the HTTP helpers built on it did not run route-scoped middleware (#714)

COLDBOX-1460 Passing a component instance as route middleware failed on engines where isStruct() is true for components (#719)

COLDBOX-1456 Bootstrap.onSessionStart() ran the session start handler on a controller that was still loading during a reinit; it now skips the event until the controller is initiated (#716)

COLDBOX-1454 Interceptor buffer pool race between a request and its async announce() thread ("can not pop Element from array, array is empty") (#705)

COLDBOX-1453 RestHandler.onEntityNotFoundException() threw MissingArgumentException on Adobe ColdFusion 2023 (#704)

COLDBOX-1458 onOneServer() calendar tasks (everyDayAt(), everyMonthOn(), etc.) drifted to the scheduler's restart time after a restart (#713)

event.route( "name@module" ) built module route links without a slash between the module entry point and the route pattern (#708, #720)

Adobe ColdFusion: a request context decorator copied the this reference of the original context, so its inherited methods ran against the original context and missed the decorator's own state and mocks (#708, #720)

Changed

The CFScopes scope class was renamed to EngineScopes (coldbox.system.ioc.scopes.EngineScopes). Scope names are unchanged; there is no alias for the old class path (#715)

Fixed

COLDBOX-1455 Singleton, engine (application, session, server) and CacheBox scopes handed objects to other threads before their dependencies were wired; a single wiring lock now makes other threads wait (#715)

A circular partner was released to other threads before the outer object finished wiring; keys now stay marked until the outermost build completes, tracked on the injector across all scopes (#718)

Last updated

Was this helpful?