Skip to content

Latest commit

 

History

History
125 lines (78 loc) · 5.22 KB

File metadata and controls

125 lines (78 loc) · 5.22 KB

assets CHANGELOG

This is the changelog for assets. It follows semantic versioning.

v0.4.4

Patch Changes

v0.4.3

Patch Changes

v0.4.2

Patch Changes

  • Use canonical realpath asset URLs for package imports so symlinked package paths and their real paths do not produce duplicate browser modules.

  • Use polling for asset server file watching by default on Windows to avoid native filesystem watcher crashes while still allowing explicit watch.poll overrides.

  • Bumped @remix-run/* dependencies:

v0.4.1

Patch Changes

  • Resolve bare imports from symlinked packages using the package's real filesystem path so pnpm virtual-store dependencies can be served through the asset server (see #11438).

  • Bumped @remix-run/* dependencies:

v0.4.0

Minor Changes

  • Add support for serving configured leaf file assets via a new files option in createAssetServer().

    Relative CSS url() references are now resolved through the asset server, rewriting supported file assets to asset server URLs and surfacing errors for missing or unsupported files.

Patch Changes

  • Preserve node_modules package symlink identity paths when rewriting script imports, while still reading, caching, and invalidating modules through their canonical real paths.

  • Bumped @remix-run/* dependencies:

v0.3.0

Minor Changes

  • BREAKING CHANGE: createAssetServer() now requires a basePath option, and fileMap URL patterns are now relative to that base path.

    // Before:
    createAssetServer({
      fileMap: {
        '/assets/app/*path': 'app/*path',
        '/assets/npm/*path': 'node_modules/*path',
      },
      allow: ['app/**', 'node_modules/**'],
    })
    
    // After:
    createAssetServer({
      basePath: '/assets',
      fileMap: {
        '/app/*path': 'app/*path',
        '/npm/*path': 'node_modules/*path',
      },
      allow: ['app/**', 'node_modules/**'],
    })

Patch Changes

  • The @oxc-project/runtime package which provides helpers for generated code targeting older browsers is now served automatically by the asset server and doesn't need to be manually installed.

v0.2.0

Minor Changes

  • BREAKING CHANGE: target configuration is now configured at the top level with an object format, supporting es version targets along with browser version targets.

    Browser targets are configured with string versions such as target: { chrome: '109', safari: '16.4' }, and scripts can specify es as a year of 2015 or higher such as target: { es: '2020' }.

    To migrate existing script configuration, replace scripts.target options like scripts: { target: 'es2020' } with target: { es: '2020' }.

  • BREAKING CHANGE: Shared compiler options are now provided at the top level of createAssetServer(). Use sourceMaps, sourceMapSourcePaths, and minify directly on the asset server options instead of being nested under scripts. This allows these options to also be used for styles as well as scripts.

    To migrate existing configuration, move scripts.minify, scripts.sourceMaps, scripts.sourceMapSourcePaths to the top-level asset server options.

  • createAssetServer() now compiles and serves .css files alongside scripts, including local @import rewriting, fingerprinting, and shared compiler options for minification, source maps, and browser compatibility targeting.

Patch Changes

  • Fix matching of dot-prefixed files and directories in allow and deny globs

  • Improve asset server import errors to include the resolved file path when a resolved import is later rejected by validation for allow/deny rules, supported file types and fileMap configuration.

v0.1.0

Minor Changes

  • Initial release of @remix-run/assets.

Patch Changes