Dox patch release: 27 November 2026
This release is patch versions only. Dox can now serve HTTPS with no proxy, and each server isolate can have its own memory. The two features are off by default. The release also has fixes for request bodies that are not valid.
Key takeaways
- HTTPS without a proxy. Set
tlsin the app config with a certificate file and a key file. Read HTTPS without a proxy in Dox.- Isolate groups. One flag gives each isolate its own heap and its own garbage collector. Read Isolate groups.
- Fixes for bad request bodies. A multipart body that is not valid now gets a
400. Before, the request could wait with no answer.- Easy to update. Patch versions only. Run
dart pub upgrade, then check Read before you update.
Versions
| Package | New version |
|---|---|
dox_http_native |
3.2.6 |
dox_core |
3.2.6 |
dox_orm |
3.2.4 |
dox_migration |
3.2.4 |
dox_cache_database |
3.2.4 |
| App template | v3.2.6 |
dox_orm and dox_cache_database have no changes. Their version goes up with dox_migration.
No change: all the other packages and the dox CLI.
How to update
-
Get the new versions:
-
Build or start the app again. The new native library downloads automatically.
-
Read Read before you update.
There is no API change. An app that does not turn on the new features works the same as before.
New
HTTPS without a proxy
Dox can do the TLS work itself. Set tls in the app config:
AppConfig appConfig = AppConfig(
serverPort: 443,
tls: TlsOptions(
certificatePath: '/etc/letsencrypt/live/example.com/fullchain.pem',
keyPath: '/etc/letsencrypt/live/example.com/privkey.pem',
),
// ...
);
- The server uses TLS 1.2 and TLS 1.3. The TLS work is in Rust, with rustls. There is no OpenSSL.
- With
http2: true, browsers and gRPC clients use HTTP/2 with no proxy. Dox().server.reloadCertificate()uses a new certificate without a restart.req.scheme()ishttps. Cookies getSecure, andSecurityHeaderssends HSTS.DoxTestClientspeaks HTTPS when the config hastls.- A new app from template v3.2.6 has the
TLS_CERTandTLS_KEYkeys. Set them in.envto turn on HTTPS without a code change.
Dox does not get or renew a certificate, and it does not redirect http:// to https://. For these, keep a proxy. See HTTPS without a proxy.
Isolate groups
By default, all server isolates share one heap and one garbage collector, and the Dart VM runs only 8 of them at the same time. Turn on isolateGroups to give each isolate its own heap:
AppConfig appConfig = AppConfig(
flags: CoreFlags(isolateGroups: env.appEnv == 'production'),
// ...
);
- A garbage collection in one isolate does not stop the others.
- The limit of 8 isolates does not apply.
- Each isolate runs
main()again.Dox().isPrimaryis true only in the first isolate. Use it for work that must run one time. - With
dox_migration3.2.4, the migrations inmain()run only in the first isolate.
See Give each isolate its own memory.
A warning for servers with more than 8 CPU cores
The Dart VM runs 8 isolates at the same time by default, so a bigger server used only approximately 8 cores. Dox now shows a warning at the start when the app has more isolates than the VM runs. The warning gives the DART_VM_OPTIONS value that lets all isolates run.
Fixes
- Multipart bodies that are not valid. Some bad
multipart/form-databodies made the request wait with no answer, and the server then did not stop on shutdown. Others gave a500. Now they get a400. - Bracket keys with an unusual index. A key such as
k[01]=zork[+1]=zlost its value inreq.body,req.queryand a DTO. Now only plain digits are a list index. Other keys are map keys and keep their value:k[01]=zgives{k: {01: z}}.
Fuzz tests found these bugs.
Read before you update
dox_core3.2.6 needsdox_http_native3.2.6.dart pub upgradegets the two together.- The native library is bigger. The library of
dox_http_nativegoes from approximately 0.6 MB to approximately 1.4 MB, because it now has the TLS code. - A bracket key that is not plain digits is now a map key.
k[01]=zgave a list before, with a lost value. Now it gives a map. A key likek[+5000]got a422before. Now it is a map key too. - With isolate groups,
main()runs in each isolate. Read your settings and the app key from the env, not from command line arguments.
Full list: the CHANGELOG of each package.