1.2.0

  • Fixed npm run dev command. Added middleware to reload nested routes.

  • Improved data-optional tag:

    • Can now specify which attribute to check with data-optional="attrName" (src, href, ...)
    • Now works for img, input, etc
  • Event Bus :

    • Tracks both event name + callback.
    • cleanupEventListeners now works correctly.
    • New property: once. once subscriptions 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 --bundle is equivalent to npm 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: --prod or --production will set NODE_ENV to production, and have the same effect as --bundle. const isProd = process.env.npm_config_bundle || process.env.NODE_ENV === 'production';

  • Improved deployment tools Dockerfile (nginx conf + gzip)

  • stylin-nutin (generator)

    • When generating a component, prompts (boolean) to generate a _component-name.scss file in styles/components (forwarded by styles/components/_index.scss).