github remix-run/remix remix@3.0.0-alpha.4
remix v3.0.0-alpha.4

latest release: component@0.6.0
7 hours ago

Pre-release Changes

  • BREAKING CHANGE: Remove the remix/data-table/sql export. Import SqlStatement, sql, and rawSql from remix/data-table instead.

    remix/data-table/sql-helpers remains available for adapter-facing SQL utilities.

    remix/data-table now exports the Database class as a runtime value. You can construct a database directly with new Database(adapter, options) or keep using createDatabase(adapter, options), which now delegates to the class constructor.

    BREAKING CHANGE: remix/data-table no longer exports QueryBuilder. Import Query and query from remix/data-table, then execute unbound queries with db.exec(...). db.exec(...) now accepts only raw SQL or Query values, and unbound terminal methods like first(), count(), insert(), and update() return Query objects instead of separate command descriptor types. db.query(table) remains available as shorthand and now returns the same bound Query class.

    remix/data-table/migrations no longer exports a separate Database type alias. Import Database from remix/data-table when you need the migration db type directly.

    The incidental QueryMethod type export has also been removed; use Database['query'] or QueryForTable<table> when you need that type shape.

    Added package.json exports:

    • remix/auth-middleware to re-export APIs from @remix-run/auth-middleware
    • remix/auth to re-export APIs from @remix-run/auth
  • Add remix/cors-middleware to re-export the CORS middleware APIs from @remix-run/cors-middleware.

  • Update remix/component and remix/component/server to re-export the latest @remix-run/component frame-navigation APIs.

    remix/component now exposes navigate(href, { src, target, history }), link(href, { src, target, history }), run({ loadModule, resolveFrame }), and the handle.frames.top and handle.frames.get(name) helpers, while remix/component/server re-exports the SSR frame source APIs including frameSrc, topFrameSrc, and ResolveFrameContext.

  • Add browser-origin and CSRF protection middleware APIs to remix.

    • remix/cop-middleware exposes cop(options) for browser-focused cross-origin protection
      using Sec-Fetch-Site with Origin fallback, trusted origins, and configurable bypasses.
    • remix/csrf-middleware exposes csrf(options) and getCsrfToken(context) for
      session-backed CSRF tokens plus origin validation.
    • Apps can use either middleware independently or layer cop(), session(), and csrf()
      together when they want both browser-origin filtering and token-backed protection.
  • Bumped @remix-run/* dependencies:

Don't miss a new remix release

NewReleases is sending notifications on new releases.