1.2.0
Fixed
npm run devcommand. Added middleware to reload nested routes.Improved
data-optionaltag:- Can now specify which attribute to check with
data-optional="attrName"(src,href, ...) - Now works for
img,input, etc
- Can now specify which attribute to check with
Event Bus :
- Tracks both event name + callback.
- cleanupEventListeners now works correctly.
- New property:
once.oncesubscriptions automatically remove themselves after first call.
HTTP client :
- Optional request / response interceptors.
- Full timeout / abort controller support preserved.
- onDestroy now clears interceptors to prevent memory leaks.
Improved builder
- Implemented
esbuild&html-minifier-terser. - Added flags
--bundle(for production-ready build.npm run build --bundleis equivalent tonpm run build:prod) and--log(verbose output). Doesn't work with yarn or bun. - Commands:
npm run build,npm run build:prod,npm run serve:only,npm run serve,npm run dev.
Note:
--prodor--productionwill set NODE_ENV to production, and have the same effect as--bundle.const isProd = process.env.npm_config_bundle || process.env.NODE_ENV === 'production';- Implemented
Improved deployment tools Dockerfile (nginx conf + gzip)
stylin-nutin (generator)
- When generating a component, prompts (boolean) to generate a
_component-name.scssfile instyles/components(forwarded bystyles/components/_index.scss).
- When generating a component, prompts (boolean) to generate a