netlify-templates / kpop-stack

Create a Remix app with Netlify, Tailwind, TypeScript and more!
https://kpop-stack.netlify.app
247 stars 66 forks source link

chore(deps): update remix monorepo to v2 (major) - autoclosed #208

Closed renovate[bot] closed 9 months ago

renovate[bot] commented 1 year ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@remix-run/dev (source) ^1.6.8 -> ^2.0.0 age adoption passing confidence
@remix-run/eslint-config (source) ^1.6.8 -> ^2.0.0 age adoption passing confidence
@remix-run/node (source) ^1.6.8 -> ^2.0.0 age adoption passing confidence
@remix-run/react (source) ^1.6.8 -> ^2.0.0 age adoption passing confidence
@remix-run/serve (source) ^1.6.8 -> ^2.0.0 age adoption passing confidence

Release Notes

remix-run/remix (@​remix-run/dev) ### [`v2.3.1`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-dev/CHANGELOG.md#231) [Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/dev@2.3.0...@remix-run/dev@2.3.1) ##### Patch Changes - Support `nonce` prop on `LiveReload` component in Vite dev ([#​8014](https://togithub.com/remix-run/remix/pull/8014)) - Ensure code-split JS files in the server build's assets directory aren't cleaned up after Vite build ([#​8042](https://togithub.com/remix-run/remix/pull/8042)) - Fix redundant copying of assets from `public` directory in Vite build ([#​8039](https://togithub.com/remix-run/remix/pull/8039)) - This ensures that static assets aren't duplicated in the server build directory - This also fixes an issue where the build would break if `assetsBuildDirectory` was deeply nested within the `public` directory - Updated dependencies: - `@remix-run/node@2.3.1` - `@remix-run/server-runtime@2.3.1` ### [`v2.3.0`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-dev/CHANGELOG.md#230) [Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/dev@2.2.0...@remix-run/dev@2.3.0) ##### Patch Changes - Support rendering of `LiveReload` component after `Scripts` in Vite dev ([#​7919](https://togithub.com/remix-run/remix/pull/7919)) - fix(vite): fix "react-refresh/babel" resolution for custom server with pnpm ([#​7904](https://togithub.com/remix-run/remix/pull/7904)) - Support JSX usage in `.jsx` files without manual `React` import in Vite ([#​7888](https://togithub.com/remix-run/remix/pull/7888)) - Support optional rendering of `LiveReload` component in Vite dev ([#​7919](https://togithub.com/remix-run/remix/pull/7919)) - Fix Vite production builds when plugins that have different local state between `development` and `production` modes are present, e.g. `@mdx-js/rollup`. ([#​7911](https://togithub.com/remix-run/remix/pull/7911)) - Cache resolution of Remix Vite plugin options ([#​7908](https://togithub.com/remix-run/remix/pull/7908)) - Support Vite 5 ([#​7846](https://togithub.com/remix-run/remix/pull/7846)) - Allow `process.env.NODE_ENV` values other than `"development"` in Vite dev ([#​7980](https://togithub.com/remix-run/remix/pull/7980)) - Attach CSS from shared chunks to routes in Vite build ([#​7952](https://togithub.com/remix-run/remix/pull/7952)) - fix(vite): Let Vite handle serving files outside of project root via `/@​fs` ([#​7913](https://togithub.com/remix-run/remix/pull/7913)) - This fixes errors when using default client entry or server entry in a pnpm project where those files may be outside of the project root, but within the workspace root. - By default, Vite prevents access to files outside the workspace root (when using workspaces) or outside of the project root (when not using workspaces) unless user explicitly opts into it via Vite's `server.fs.allow`. - Improve performance of LiveReload proxy in Vite dev ([#​7883](https://togithub.com/remix-run/remix/pull/7883)) - fix(vite): deduplicate `@remix-run/react` ([#​7926](https://togithub.com/remix-run/remix/pull/7926)) - Pre-bundle Remix dependencies to avoid Remix router duplicates. - Our remix-react-proxy plugin does not process default client and - server entry files since those come from within `node_modules`. - That means that before Vite pre-bundles dependencies (e.g. first time dev server is run) mismatching Remix routers cause `Error: You must render this element inside a element`. - Fix React Fast Refresh error on load when using `defer` in Vite dev server ([#​7842](https://togithub.com/remix-run/remix/pull/7842)) - Handle multiple "Set-Cookie" headers in Vite dev server ([#​7843](https://togithub.com/remix-run/remix/pull/7843)) - Fix flash of unstyled content on initial page load in Vite dev when using a custom Express server ([#​7937](https://togithub.com/remix-run/remix/pull/7937)) - Emit assets that were only referenced in the server build into the client assets directory in Vite build ([#​7892](https://togithub.com/remix-run/remix/pull/7892), cherry-picked in [`8cd31d65`](https://togithub.com/remix-run/remix/commit/8cd31d6543ef4c765220fc64dca9bcc9c61ee9eb)) - Populate `process.env` from `.env` files on the server in Vite dev ([#​7958](https://togithub.com/remix-run/remix/pull/7958)) - Fix `FutureConfig` type ([#​7895](https://togithub.com/remix-run/remix/pull/7895)) - Updated dependencies: - `@remix-run/server-runtime@2.3.0` - `@remix-run/node@2.3.0` ### [`v2.2.0`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-dev/CHANGELOG.md#220) [Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/dev@2.1.0...@remix-run/dev@2.2.0) ##### Minor Changes - Unstable Vite support for Node-based Remix apps ([#​7590](https://togithub.com/remix-run/remix/pull/7590)) - `remix build` πŸ‘‰ `vite build && vite build --ssr` - `remix dev` πŸ‘‰ `vite dev` - Other runtimes (e.g. Deno, Cloudflare) not yet supported. - See "Future > Vite" in the Remix Docs for details - Add a new `future.v3_fetcherPersist` flag to change the persistence behavior of fetchers. Instead of being immediately cleaned up when unmounted in the UI, fetchers will persist until they return to an `idle` state ([RFC](https://togithub.com/remix-run/remix/discussions/7698)) ([#​7704](https://togithub.com/remix-run/remix/pull/7704)) - For more details, please refer to the [React Router 6.18.0](https://togithub.com/remix-run/react-router/releases/tag/react-router%406.18.0) release notes ##### Patch Changes - Updated dependencies: - `@remix-run/server-runtime@2.2.0` - `@remix-run/node@2.2.0` ### [`v2.1.0`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-dev/CHANGELOG.md#210) [Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/dev@2.0.1...@remix-run/dev@2.1.0) ##### Patch Changes - Sourcemap takes into account special chars in output file ([#​7574](https://togithub.com/remix-run/remix/pull/7574)) - Updated dependencies: - `@remix-run/server-runtime@2.1.0` ### [`v2.0.1`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-dev/CHANGELOG.md#201) [Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/dev@2.0.0...@remix-run/dev@2.0.1) ##### Patch Changes - Fix types for MDX files when using pnpm ([#​7491](https://togithub.com/remix-run/remix/pull/7491)) - Update `getDependenciesToBundle` to handle ESM packages without main exports ([#​7272](https://togithub.com/remix-run/remix/pull/7272)) - Note that these packages must expose `package.json` in their `exports` field so that their path can be resolved - Fix server builds where `serverBuildPath` extension is `.cjs` ([#​7180](https://togithub.com/remix-run/remix/pull/7180)) - Updated dependencies: - `@remix-run/server-runtime@2.0.1` ### [`v2.0.0`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-dev/CHANGELOG.md#200) [Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/dev@1.19.3...@remix-run/dev@2.0.0) ##### Major Changes - The `create-remix` CLI has been rewritten to feature a cleaner interface, Git repo initialization and optional `remix.init` script execution. The interactive template prompt and official Remix stack/template shorthands have also been removed so that community/third-party templates are now on a more equal footing. ([#​6887](https://togithub.com/remix-run/remix/pull/6887)) - The code for `create-remix` has been moved out of the Remix CLI since it's not intended for use within an existing Remix application - This means that the `remix create` command is no longer available. - Enable built-in PostCSS and Tailwind support by default. ([#​6909](https://togithub.com/remix-run/remix/pull/6909)) - These tools are now automatically used within the Remix compiler if PostCSS and/or Tailwind configuration files are present in your project. - If you have a custom PostCSS and/or Tailwind setup outside of Remix, you can disable these features in your `remix.config.js` via the `postcss:false` and/or `tailwind:false` flags - Drop React 17 support ([#​7121](https://togithub.com/remix-run/remix/pull/7121)) - Require Node >=18.0.0 ([#​6939](https://togithub.com/remix-run/remix/pull/6939)) - Compile server build to Node 18 ([#​7292](https://togithub.com/remix-run/remix/pull/7292)) - This allows features like top-level `await` to be used within a Remix app - Remove default Node.js polyfills - you must now opt-into polyfills via the [`serverNodeBuiltinsPolyfill`](https://remix.run/docs/en/2.0.0/start/v2#servernodebuiltinspolyfill) and [`browserNodeBuiltinsPolyfill`](https://remix.run/docs/en/2.0.0/start/v2#browsernodebuiltinspolyfill) configs ([#​7269](https://togithub.com/remix-run/remix/pull/7269)) - Remove `v2_errorBoundary` flag and `CatchBoundary` implementation ([#​6906](https://togithub.com/remix-run/remix/pull/6906)) - Remove `v2_normalizeFormMethod` future flag - all `formMethod` values will be normalized in v2 ([#​6875](https://togithub.com/remix-run/remix/pull/6875)) - Remove `v2_routeConvention` flag - the flat route file convention is now standard ([#​6969](https://togithub.com/remix-run/remix/pull/6969)) - Remove `v2_headers` flag - it is now the default behavior to use the deepest `headers` function in the route tree ([#​6979](https://togithub.com/remix-run/remix/pull/6979)) - The route `meta` API now defaults to the new "V2 Meta" API ([#​6958](https://togithub.com/remix-run/remix/pull/6958)) - Please refer to the ([docs](https://remix.run/docs/en/2.0.0/route/meta) and [Preparing for V2](https://remix.run/docs/en/2.0.0/start/v2#route-meta) guide for more information. - Default to `serverModuleFormat: "esm"` and update `remix-serve` to use dynamic import to support ESM and CJS build outputs ([#​6949](https://togithub.com/remix-run/remix/pull/6949)) - Remove `serverBuildTarget` config option ([#​6896](https://togithub.com/remix-run/remix/pull/6896)) - Remove deprecated `REMIX_DEV_HTTP_ORIGIN` env var - use `REMIX_DEV_ORIGIN` instead ([#​6963](https://togithub.com/remix-run/remix/pull/6963)) - Remove `devServerBroadcastDelay` config option ([#​7063](https://togithub.com/remix-run/remix/pull/7063)) - Remove deprecated `devServerPort` option - use `--port` / `dev.port` instead ([#​7078](https://togithub.com/remix-run/remix/pull/7078)) - Remove deprecated `REMIX_DEV_SERVER_WS_PORT` env var - use `remix dev`'s '`--port` / `port` option instead ([#​6965](https://togithub.com/remix-run/remix/pull/6965)) - Stop passing `isTypeScript` to `remix.init` script ([#​7099](https://togithub.com/remix-run/remix/pull/7099)) - Remove `replace-remix-magic-imports` codemod ([#​6899](https://togithub.com/remix-run/remix/pull/6899)) - Remove deprecated `--no-restart`/`restart` cli args/flags - use `--manual`/`manual` instead ([#​6962](https://togithub.com/remix-run/remix/pull/6962)) - Remove deprecated `--scheme`/`scheme` and `--host`/`host` cli args/flags - use `REMIX_DEV_ORIGIN` instead ([#​6962](https://togithub.com/remix-run/remix/pull/6962)) - Promote the `future.v2_dev` flag in `remix.config.js` to a root level `dev` config ([#​7002](https://togithub.com/remix-run/remix/pull/7002)) - Remove `browserBuildDirectory` config option ([#​6900](https://togithub.com/remix-run/remix/pull/6900)) - Remove `serverBuildDirectory` config option (\[[#​6897](https://togithub.com/remix-run/remix/issues/6897)]\( Remove `codemod` command ([#​6918](https://togithub.com/remix-run/remix/pull/6918)) 6897\)) - Removed support for "magic exports" from the `remix` package. This package can be removed from your `package.json` and you should update all imports to use the source `@remix-run/*` packages: ([#​6895](https://togithub.com/remix-run/remix/pull/6895)) ```diff - import type { ActionArgs } from "remix"; - import { json, useLoaderData } from "remix"; + import type { ActionArgs } from "@​remix-run/node"; + import { json } from "@​remix-run/node"; + import { useLoaderData } from "@​remix-run/react"; ``` ##### Minor Changes - Warn users about obsolete future flags in `remix.config.js` ([#​7048](https://togithub.com/remix-run/remix/pull/7048)) - Detect built mode via `build.mode` ([#​6964](https://togithub.com/remix-run/remix/pull/6964)) - Prevents mode mismatch between built Remix server entry and user-land server - Additionally, all runtimes (including non-Node runtimes) can use `build.mode` to determine if HMR should be performed - Support `bun` package manager ([#​7074](https://togithub.com/remix-run/remix/pull/7074)) - The `serverNodeBuiltinsPolyfill` option (along with the newly added `browserNodeBuiltinsPolyfill`) now supports defining global polyfills in addition to module polyfills ([#​7269](https://togithub.com/remix-run/remix/pull/7269)) - For example, to polyfill Node's `Buffer` global: ```js module.exports = { serverNodeBuiltinsPolyfill: { globals: { Buffer: true, }, // You'll probably need to polyfill the "buffer" module // too since the global polyfill imports this: modules: { buffer: true, }, }, }; ``` ##### Patch Changes - Fix importing of PNGs, SVGs, and other assets from packages in `node_modules` ([#​6813](https://togithub.com/remix-run/remix/pull/6813), [#​7182](https://togithub.com/remix-run/remix/pull/7182)) - Decouple the `@remix-run/dev` package from the contents of the `@remix-run/css-bundle` package. ([#​6982](https://togithub.com/remix-run/remix/pull/6982)) - The contents of the `@remix-run/css-bundle` package are now entirely managed by the Remix compiler - Even though it's still recommended that your Remix dependencies all share the same version, this change ensures that there are no runtime errors when upgrading `@remix-run/dev` without upgrading `@remix-run/css-bundle` - Allow non-development modes for `remix watch` ([#​7117](https://togithub.com/remix-run/remix/pull/7117)) - Stop `remix dev` when `esbuild` is not running ([#​7158](https://togithub.com/remix-run/remix/pull/7158)) - Do not interpret JSX in `.ts` files ([#​7306](https://togithub.com/remix-run/remix/pull/7306)) - While JSX is supported in `.js` files for compatibility with existing apps and libraries, `.ts` files should not contain JSX. By not interpreting `.ts` files as JSX, `.ts` files can contain single-argument type generics without needing a comma to disambiguate from JSX: ```ts // this works in .ts files const id = (x: T) => x; // ^ single-argument type generic ``` ```tsx // this doesn't work in .tsx files const id = (x: T) => x; // ^ is this a JSX element? or a single-argument type generic? ``` ```tsx // this works in .tsx files const id = (x: T) => x; // ^ comma: this is a generic, not a JSX element const component =

hello

; // ^ no comma: this is a JSX element ``` - Enhance obsolete flag warning for `future.v2_dev` if it was an object, and prompt users to lift it to the root `dev` config ([#​7427](https://togithub.com/remix-run/remix/pull/7427)) - Allow decorators in app code ([#​7176](https://togithub.com/remix-run/remix/pull/7176)) - Allow JSX in `.js` files during HMR ([#​7112](https://togithub.com/remix-run/remix/pull/7112)) - Kill app server when remix dev terminates ([#​7280](https://togithub.com/remix-run/remix/pull/7280)) - Support dependencies that import polyfill packages for Node built-ins via a trailing slash (e.g. importing the `buffer` package with `var Buffer = require('buffer/').Buffer` as recommended in their README) ([#​7198](https://togithub.com/remix-run/remix/pull/7198)) - These imports were previously marked as external - This meant that they were left as dynamic imports in the client bundle and would throw a runtime error in the browser (e.g. `Dynamic require of "buffer/" is not supported`) - Surface errors when PostCSS config is invalid ([#​7391](https://togithub.com/remix-run/remix/pull/7391)) - Restart dev server when Remix config changes ([#​7269](https://togithub.com/remix-run/remix/pull/7269)) - Remove outdated ESM import warnings ([#​6916](https://togithub.com/remix-run/remix/pull/6916)) - Most of the time these warnings were false positives. - Instead, we now rely on built-in Node warnings for ESM imports. - Do not trigger rebuilds when `.DS_Store` changes ([#​7172](https://togithub.com/remix-run/remix/pull/7172)) - Remove warnings for stabilized flags: ([#​6905](https://togithub.com/remix-run/remix/pull/6905)) - `unstable_cssSideEffectImports` - `unstable_cssModules` - `unstable_vanillaExtract` - Allow any mode (`NODE_ENV`) ([#​7113](https://togithub.com/remix-run/remix/pull/7113)) - Replace the deprecated [`xdm`](https://togithub.com/wooorm/xdm) package with [`@mdx-js/mdx`](https://togithub.com/mdx-js/mdx) ([#​4054](https://togithub.com/remix-run/remix/pull/4054)) - Write a `version.txt` sentinel file *after* server build is completely written ([#​7299](https://togithub.com/remix-run/remix/pull/7299)) - Updated dependencies: - `@remix-run/server-runtime@2.0.0`
remix-run/remix (@​remix-run/eslint-config) ### [`v2.3.1`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-eslint-config/CHANGELOG.md#231) [Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/eslint-config@2.3.0...@remix-run/eslint-config@2.3.1) No significant changes to this package were made in this release. [See the repo `CHANGELOG.md`](https://togithub.com/remix-run/remix/blob/main/CHANGELOG.md) for an overview of all changes in v2.3.1. ### [`v2.3.0`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-eslint-config/CHANGELOG.md#230) [Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/eslint-config@2.2.0...@remix-run/eslint-config@2.3.0) No significant changes to this package were made in this release. [See the repo `CHANGELOG.md`](https://togithub.com/remix-run/remix/blob/main/CHANGELOG.md) for an overview of all changes in v2.3.0. ### [`v2.2.0`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-eslint-config/CHANGELOG.md#220) [Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/eslint-config@2.1.0...@remix-run/eslint-config@2.2.0) No significant changes to this package were made in this release. [See the releases page on GitHub](https://togithub.com/remix-run/remix/releases/tag/remix%402.2.0) for an overview of all changes in v2.2.0. ### [`v2.1.0`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-eslint-config/CHANGELOG.md#210) [Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/eslint-config@2.0.1...@remix-run/eslint-config@2.1.0) No significant changes to this package were made in this release. [See the releases page on GitHub](https://togithub.com/remix-run/remix/releases/tag/remix%402.1.0) for an overview of all changes in v2.1.0. ### [`v2.0.1`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-eslint-config/CHANGELOG.md#201) [Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/eslint-config@2.0.0...@remix-run/eslint-config@2.0.1) No significant changes to this package were made in this release. [See the releases page on GitHub](https://togithub.com/remix-run/remix/releases/tag/remix%402.0.1) for an overview of all changes in v2.0.1. ### [`v2.0.0`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-eslint-config/CHANGELOG.md#200) [Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/eslint-config@1.19.3...@remix-run/eslint-config@2.0.0) ##### Major Changes - Remove `@remix-run/eslint-config/jest` ESLint config ([#​6903](https://togithub.com/remix-run/remix/pull/6903)) - Drop React 17 support ([#​7121](https://togithub.com/remix-run/remix/pull/7121)) - Remove magic imports ESLint warnings ([#​6902](https://togithub.com/remix-run/remix/pull/6902)) - Remove `v2_normalizeFormMethod` future flag - all `formMethod` values will be normalized in v2 ([#​6875](https://togithub.com/remix-run/remix/pull/6875))
remix-run/remix (@​remix-run/node) ### [`v2.3.1`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-node/CHANGELOG.md#231) [Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/node@2.3.0...@remix-run/node@2.3.1) ##### Patch Changes - Updated dependencies: - `@remix-run/server-runtime@2.3.1` ### [`v2.3.0`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-node/CHANGELOG.md#230) [Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/node@2.2.0...@remix-run/node@2.3.0) ##### Patch Changes - Updated dependencies: - `@remix-run/server-runtime@2.3.0` ### [`v2.2.0`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-node/CHANGELOG.md#220) [Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/node@2.1.0...@remix-run/node@2.2.0) ##### Patch Changes - Updated dependencies: - `@remix-run/server-runtime@2.2.0` ### [`v2.1.0`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-node/CHANGELOG.md#210) [Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/node@2.0.1...@remix-run/node@2.1.0) ##### Patch Changes - Updated dependencies: - `@remix-run/server-runtime@2.1.0` ### [`v2.0.1`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-node/CHANGELOG.md#201) [Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/node@2.0.0...@remix-run/node@2.0.1) ##### Patch Changes - Switch from `crypto.randomBytes` to `crypto.webcrypto.getRandomValues` for file session storage ID generation ([#​7203](https://togithub.com/remix-run/remix/pull/7203)) - Use native `Blob` class instead of polyfill ([#​7217](https://togithub.com/remix-run/remix/pull/7217)) - Updated dependencies: - `@remix-run/server-runtime@2.0.1` - [`@remix-run/web-fetch@4.4.1`](https://togithub.com/remix-run/web-std-io/releases/tag/%40remix-run%2Fweb-fetch%404.4.1) ### [`v2.0.0`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-node/CHANGELOG.md#200) [Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/node@1.19.3...@remix-run/node@2.0.0) ##### Major Changes - Require Node >=18.0.0 ([#​6939](https://togithub.com/remix-run/remix/pull/6939)) - Stop exporting the `fetch` API in favor of using the version in the global scope - which can be polyfilled via `installGlobals` ([#​7293](https://togithub.com/remix-run/remix/pull/7293)) - Removed/adjusted types to prefer `unknown` over `any` and to align with underlying React Router types ([#​7319](https://togithub.com/remix-run/remix/pull/7319), [#​7354](https://togithub.com/remix-run/remix/pull/7354)): - Renamed the `useMatches()` return type from `RouteMatch` to `UIMatch` - Renamed `LoaderArgs`/`ActionArgs` to `LoaderFunctionArgs`/`ActionFunctionArgs` - `AppData` changed from `any` to `unknown` - `Location["state"]` (`useLocation.state`) changed from `any` to `unknown` - `UIMatch["data"]` (`useMatches()[i].data`) changed from `any` to `unknown` - `UIMatch["handle"]` (`useMatches()[i].handle`) changed from `{ [k: string]: any }` to `unknown` - `Fetcher["data"]` (`useFetcher().data`) changed from `any` to `unknown` - `MetaMatch.handle` (used in `meta()`) changed from `any` to `unknown` - `AppData`/`RouteHandle` are no longer exported as they are just aliases for `unknown` - The route `meta` API now defaults to the new "V2 Meta" API ([#​6958](https://togithub.com/remix-run/remix/pull/6958)) - Please refer to the ([docs](https://remix.run/docs/en/2.0.0/route/meta) and [Preparing for V2](https://remix.run/docs/en/2.0.0/start/v2#route-meta) guide for more information. - For preparation of using Node's built in fetch implementation, installing the fetch globals is now a responsibility of the app server ([#​7009](https://togithub.com/remix-run/remix/pull/7009)) - If you are using `remix-serve`, nothing is required - If you are using your own app server, you will need to install the globals yourself ```js filename=server.js import { installGlobals } from "@​remix-run/node"; installGlobals(); ``` - `source-map-support` is now a responsibility of the app server ([#​7009](https://togithub.com/remix-run/remix/pull/7009)) - If you are using `remix-serve`, nothing is required - If you are using your own app server, you will need to install [`source-map-support`](https://www.npmjs.com/package/source-map-support) yourself. ```sh npm i source-map-support ``` ```js filename=server.js import sourceMapSupport from "source-map-support"; sourceMapSupport.install(); ``` - Removed support for "magic exports" from the `remix` package. This package can be removed from your `package.json` and you should update all imports to use the source `@remix-run/*` packages: ([#​6895](https://togithub.com/remix-run/remix/pull/6895)) ```diff - import type { ActionArgs } from "remix"; - import { json, useLoaderData } from "remix"; + import type { ActionArgs } from "@​remix-run/node"; + import { json } from "@​remix-run/node"; + import { useLoaderData } from "@​remix-run/react"; ``` ##### Minor Changes - Re-export the new `redirectDocument` method from React Router ([#​7040](https://togithub.com/remix-run/remix/pull/7040), [#​6842](https://togithub.com/remix-run/remix/pull/6842)) ([#​7040](https://togithub.com/remix-run/remix/pull/7040)) ##### Patch Changes - Remove `atob`/`btoa` polyfills in favor of built-in versions ([#​7206](https://togithub.com/remix-run/remix/pull/7206)) - Export proper `ErrorResponse` type for usage alongside `isRouteErrorResponse` ([#​7244](https://togithub.com/remix-run/remix/pull/7244)) - Add the rest of the Web Streams API to `installGlobals` ([#​7321](https://togithub.com/remix-run/remix/pull/7321)) - Ensures `fetch()` return is `instanceof global Response` by removing extended classes for `NodeRequest` and `NodeResponse` in favor of custom interface type cast ([#​7109](https://togithub.com/remix-run/remix/pull/7109)) - Remove recursion from stream utilities ([#​7245](https://togithub.com/remix-run/remix/pull/7245)) - Updated dependencies: - `@remix-run/server-runtime@2.0.0` - `@remix-run/web-fetch@4.4.0` - `@remix-run/web-file@3.1.0` - `@remix-run/web-stream@1.1.0`
remix-run/remix (@​remix-run/react) ### [`v2.3.1`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-react/CHANGELOG.md#231) [Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/react@2.3.0...@remix-run/react@2.3.1) ##### Patch Changes - Updated dependencies: - `@remix-run/server-runtime@2.3.1` ### [`v2.3.0`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-react/CHANGELOG.md#230) [Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/react@2.2.0...@remix-run/react@2.3.0) ##### Minor Changes - Remove the `unstable_` prefix from the [`useBlocker`](https://reactrouter.com/en/main/hooks/use-blocker) hook as it's been in use for enough time that we are confident in the API. We do not plan to remove the prefix from `unstable_usePrompt` due to differences in how browsers handle `window.confirm` that prevent React Router from guaranteeing consistent/correct behavior. ([#​7882](https://togithub.com/remix-run/remix/pull/7882)) ##### Patch Changes - Support rendering of `LiveReload` component after `Scripts` in Vite dev ([#​7919](https://togithub.com/remix-run/remix/pull/7919)) - Support optional rendering of `LiveReload` component in Vite dev ([#​7919](https://togithub.com/remix-run/remix/pull/7919)) - add missing modulepreload for the manifest ([#​7684](https://togithub.com/remix-run/remix/pull/7684)) - Updated dependencies: - [`react-router-dom@6.19.0`](https://togithub.com/remix-run/react-router/releases/tag/react-router%406.19.0) - [`@remix-run/router@1.12.0`](https://togithub.com/remix-run/react-router/blob/main/packages/router/CHANGELOG.md#1120) - `@remix-run/server-runtime@2.3.0` ### [`v2.2.0`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-react/CHANGELOG.md#220) [Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/react@2.1.0...@remix-run/react@2.2.0) ##### Minor Changes - Unstable Vite support for Node-based Remix apps ([#​7590](https://togithub.com/remix-run/remix/pull/7590)) - `remix build` πŸ‘‰ `vite build && vite build --ssr` - `remix dev` πŸ‘‰ `vite dev` - Other runtimes (e.g. Deno, Cloudflare) not yet supported. - See "Future > Vite" in the Remix Docs for details - Add a new `future.v3_fetcherPersist` flag to change the persistence behavior of fetchers. Instead of being immediately cleaned up when unmounted in the UI, fetchers will persist until they return to an `idle` state ([RFC](https://togithub.com/remix-run/remix/discussions/7698)) ([#​7704](https://togithub.com/remix-run/remix/pull/7704)) - For more details, please refer to the [React Router 6.18.0](https://togithub.com/remix-run/react-router/releases/tag/react-router%406.18.0) release notes ##### Patch Changes - Fix warning that could be logged when using route files with no `default` export ([#​7745](https://togithub.com/remix-run/remix/pull/7745)) - It seems our compiler compiles these files to export an empty object as the `default` which we can then end up passing to `React.createElement`, triggering the console warning, but generally no UI issues - By properly detecting these, we can correctly pass `Component: undefined` off to the React Router layer - This is technically an potential issue in the compiler but it's an easy patch in the `@remix-run/react` layer and hopefully disappears in a Vite world - Fix critical CSS hydration errors for Vite dev ([#​7812](https://togithub.com/remix-run/remix/pull/7812)) - Updated dependencies: - `@remix-run/server-runtime@2.2.0` - [`react-router-dom@6.18.0`](https://togithub.com/remix-run/react-router/releases/tag/react-router%406.18.0) - [`@remix-run/router@1.11.0`](https://togithub.com/remix-run/react-router/blob/main/packages/router/CHANGELOG.md#1110) ### [`v2.1.0`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-react/CHANGELOG.md#210) [Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/react@2.0.1...@remix-run/react@2.1.0) ##### Minor Changes - Add experimental support for the [View Transitions API](https://developer.mozilla.org/en-US/docs/Web/API/ViewTransition) via `document.startViewTransition` to enable CSS animated transitions on SPA navigations in your application ([#​7648](https://togithub.com/remix-run/remix/pull/7648)) - For additional information please refer to the [2.1.0 Release Notes](https://togithub.com/remix-run/remix/releases/tag/remix%402.1.0) or the [documentation](https://remix.run/docs/components/link#unstable_viewtransition) ##### Patch Changes - Avoid mutating `meta` object when `tagName` is specified ([#​7594](https://togithub.com/remix-run/remix/pull/7594)) - Fix FOUC on subsequent client-side navigations to `route.lazy` routes ([#​7576](https://togithub.com/remix-run/remix/pull/7576)) - Emulate types for `JSON.parse(JSON.stringify(x))` in `SerializeFrom` ([#​7605](https://togithub.com/remix-run/remix/pull/7605)) - Notably, type fields that are only assignable to `undefined` after serialization are now omitted since `JSON.stringify |> JSON.parse` will omit them -- see test cases for examples - Also fixes type errors when upgrading to v2 from 1.19 - Export the proper Remix `useMatches` wrapper to fix `UIMatch` typings ([#​7551](https://togithub.com/remix-run/remix/pull/7551)) - Updated dependencies: - `@remix-run/server-runtime@2.1.0` - [`react-router-dom@6.17.0`](https://togithub.com/remix-run/react-router/releases/tag/react-router%406.17.0) - [`@remix-run/router@1.10.0`](https://togithub.com/remix-run/react-router/blob/main/packages/router/CHANGELOG.md#1100) ### [`v2.0.1`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-react/CHANGELOG.md#201) [Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/react@2.0.0...@remix-run/react@2.0.1) ##### Patch Changes - Add second generic to `UIMatch` for `handle` field ([#​7464](https://togithub.com/remix-run/remix/pull/7464)) - Fix resource routes being loaded through `route.lazy` ([#​7498](https://togithub.com/remix-run/remix/pull/7498)) - Throw a semantically correct 405 `ErrorResponse` instead of just an `Error` when submitting to a route without an `action` ([#​7423](https://togithub.com/remix-run/remix/pull/7423)) - Updated dependencies: - `@remix-run/server-runtime@2.0.1` ### [`v2.0.0`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-react/CHANGELOG.md#200) [Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/react@1.19.3...@remix-run/react@2.0.0) ##### Major Changes - Drop React 17 support ([#​7121](https://togithub.com/remix-run/remix/pull/7121)) - Require Node >=18.0.0 ([#​6939](https://togithub.com/remix-run/remix/pull/6939)) - Remove `unstable_shouldReload`, which has been replaced by `shouldRevalidate` ([#​6865](https://togithub.com/remix-run/remix/pull/6865)) - The route `meta` API now defaults to the new "V2 Meta" API ([#​6958](https://togithub.com/remix-run/remix/pull/6958)) - Please refer to the ([docs](https://remix.run/docs/en/2.0.0/route/meta) and [Preparing for V2](https://remix.run/docs/en/2.0.0/start/v2#route-meta) guide for more information. - Promote the `future.v2_dev` flag in `remix.config.js` to a root level `dev` config ([#​7002](https://togithub.com/remix-run/remix/pull/7002)) - Remove `v2_errorBoundary` flag and `CatchBoundary` implementation ([#​6906](https://togithub.com/remix-run/remix/pull/6906)) - Remove back-compat layer for `useFetcher`/`useFetchers`, which includes a few small breaking changes ([#​6874](https://togithub.com/remix-run/remix/pull/6874)) - `fetcher.type` has been removed since it can be derived from other available information - "Submission" fields have been flattened from `fetcher.submission` down onto the root `fetcher` object, and prefixed with `form` in some cases (`fetcher.submission.action` => `fetcher.formAction`) - `` is now more accurately categorized as `state:"loading"` instead of `state:"submitting"` to better align with the underlying GET request - Remove `v2_normalizeFormMethod` future flag - all `formMethod` values will be normalized in v2 ([#​6875](https://togithub.com/remix-run/remix/pull/6875)) - Remove deprecated `useTransition` hook in favor of `useNavigation` - `useNavigation` is *almost* identical with a few exceptions: ([#​6870](https://togithub.com/remix-run/remix/pull/6870)) - `useTransition.type` has been removed since it can be derived from other available information - "Submission" fields have been flattened from `useTransition().submission` down onto the root `useNavigation()` object - `
` is now more accurately categorized as `state:"loading"` instead of `state:"submitting"` to better align with the underlying GET navigation - Remove `v2_routeConvention` flag - the flat route file convention is now standard. ([#​6969](https://togithub.com/remix-run/remix/pull/6969)) - Remove `v2_headers` flag - it is now the default behavior to use the deepest `headers` function in the route tree. ([#​6979](https://togithub.com/remix-run/remix/pull/6979)) - Removed/adjusted types to prefer `unknown` over `any` and to align with underlying React Router types ([#​7319](https://togithub.com/remix-run/remix/pull/7319), [#​7354](https://togithub.com/remix-run/remix/pull/7354)): - Renamed the `useMatches()` return type from `RouteMatch` to `UIMatch` - Renamed `LoaderArgs`/`ActionArgs` to `LoaderFunctionArgs`/`ActionFunctionArgs` - `AppData` changed from `any` to `unknown` - `Location["state"]` (`useLocation.state`) changed from `any` to `unknown` - `UIMatch["data"]` (`useMatches()[i].data`) changed from `any` to `unknown` - `UIMatch["handle"]` (`useMatches()[i].handle`) changed from `{ [k: string]: any }` to `unknown` - `Fetcher["data"]` (`useFetcher().data`) changed from `any` to `unknown` - `MetaMatch.handle` (used in `meta()`) changed from `any` to `unknown` - `AppData`/`RouteHandle` are no longer exported as they are just aliases for `unknown` - Remove `imagesizes` & `imagesrcset` properties from `HtmlLinkDescriptor`, `LinkDescriptor` & `PrefetchPageDescriptor` types ([#​6936](https://togithub.com/remix-run/remix/pull/6936)) - Remove deprecated `REMIX_DEV_SERVER_WS_PORT` env var ([#​6965](https://togithub.com/remix-run/remix/pull/6965)) - use `remix dev`'s '`--port`/`port` option instead - Removed support for "magic exports" from the `remix` package. This package can be removed from your `package.json` and you should update all imports to use the source `@remix-run/*` packages: ([#​6895](https://togithub.com/remix-run/remix/pull/6895)) ```diff - import type { ActionArgs } from "remix"; - import { json, useLoaderData } from "remix"; + import type { ActionArgs } from "@​remix-run/node"; + import { json } from "@​remix-run/node"; + import { useLoaderData } from "@​remix-run/react"; ``` ##### Minor Changes - Export the `Navigation` type returned from `useNavigation` ([#​7136](https://togithub.com/remix-run/remix/pull/7136)) - Update Remix to use React Router `route.lazy` for module loading ([#​7133](https://togithub.com/remix-run/remix/pull/7133)) ##### Patch Changes - Add `error` to `meta()` params so you can render error titles, etc. ([#​7105](https://togithub.com/remix-run/remix/pull/7105)) ```tsx export function meta({ error }) { return [{ title: error.message }]; } ``` - Re-Export `ShouldRevalidateFunctionArgs` type from React Router ([#​7316](https://togithub.com/remix-run/remix/pull/7316)) - Deduplicate prefetch `link` tags ([#​7060](https://togithub.com/remix-run/remix/pull/7060)) - Skip preloading of stylesheets on client-side route transitions if the browser does not support `` ([#​7106](https://togithub.com/remix-run/remix/pull/7106)) - This prevents us from hanging on client-side navigations when we try to preload stylesheets and never receive a `load`/`error` event on the `link` tag - Export proper `ErrorResponse` type for usage alongside `isRouteErrorResponse` ([#​7244](https://togithub.com/remix-run/remix/pull/7244)) - Use the hostname from `REMIX_DEV_ORIGIN` to connect to the live reload socket ([#​6923](https://togithub.com/remix-run/remix/pull/6923)) - Use unique key for `script:ld+json` meta descriptors ([#​6954](https://togithub.com/remix-run/remix/pull/6954)) - Fix live reload port when set explicitly as a prop ([#​7358](https://togithub.com/remix-run/remix/pull/7358)) - Fix types for `useLoaderData` when using Yarn PnP ([#​7137](https://togithub.com/remix-run/remix/pull/7137)) - Updated dependencies: - `@remix-run/server-runtime@2.0.0` - [`react-router-dom@6.16.0`](https://togithub.com/remix-run/react-router/releases/tag/react-router%406.16.0) - [`@remix-run/router@1.9.0`](https://togithub.com/remix-run/react-router/blob/main/packages/router/CHANGELOG.md#190)
remix-run/remix (@​remix-run/serve) ### [`v2.3.1`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-serve/CHANGELOG.md#231) [Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/serve@2.3.0...@remix-run/serve@2.3.1) ##### Patch Changes - Updated dependencies: - `@remix-run/express@2.3.1` - `@remix-run/node@2.3.1` ### [`v2.3.0`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-serve/CHANGELOG.md#230) [Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/serve@2.2.0...@remix-run/serve@2.3.0) ##### Patch Changes - Updated dependencies: - `@remix-run/express@2.3.0` - `@remix-run/node@2.3.0` ### [`v2.2.0`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-serve/CHANGELOG.md#220) [Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/serve@2.1.0...@remix-run/serve@2.2.0) ##### Patch Changes - Updated dependencies: - `@remix-run/express@2.2.0` - `@remix-run/node@2.2.0` ### [`v2.1.0`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-serve/CHANGELOG.md#210) [Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/serve@2.0.1...@remix-run/serve@2.1.0) ##### Patch Changes - Updated dependencies: - `@remix-run/express@2.1.0` - `@remix-run/node@2.1.0` ### [`v2.0.1`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-serve/CHANGELOG.md#201) [Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/serve@2.0.0...@remix-run/serve@2.0.1) ##### Patch Changes - Fix HMR for CJS projects using `remix-serve` and manual mode (`remix dev --manual`) ([#​7487](https://togithub.com/remix-run/remix/pull/7487)) - By explicitly busting the `require` cache, `remix-serve` now correctly re-imports new server changes in CJS - ESM projects were already working correctly and are not affected by this. - Fix error caused by partially written server build ([#​7470](https://togithub.com/remix-run/remix/pull/7470)) - Previously, it was possible to trigger a reimport of the app server code before the new server build had completely been written. Reimporting the partially written server build caused issues related to `build.assets` being undefined and crashing when reading `build.assets.version` - Updated dependencies: - `@remix-run/node@2.0.1` - `@remix-run/express@2.0.1` ### [`v2.0.0`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-serve/CHANGELOG.md#200) [Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/serve@1.19.3...@remix-run/serve@2.0.0) ##### Major Changes - `remix-serve` now picks an open port if 3000 is taken ([#​7278](https://togithub.com/remix-run/remix/pull/7278)) - If `PORT` env var is set, `remix-serve` will use that port - Otherwise, `remix-serve` picks an open port (3000 unless that is already taken) - Integrate manual mode in `remix-serve` ([#​7231](https://togithub.com/remix-run/remix/pull/7231)) - Remove undocumented `createApp` Node API ([#​7229](https://togithub.com/remix-run/remix/pull/7229)) - `remix-serve` is a CLI, not a library - Require Node >=18.0.0 ([#​6939](https://togithub.com/remix-run/remix/pull/6939)) - Promote the `future.v2_dev` flag in `remix.config.js` to a root level `dev` config ([#​7002](https://togithub.com/remix-run/remix/pull/7002)) - Default to `serverModuleFormat: "esm"` and update `remix-serve` to use dynamic import to support ESM and CJS build outputs ([#​6949](https://togithub.com/remix-run/remix/pull/6949)) - Preserve dynamic imports in `remix-serve` for external bundle ([#​7173](https://togithub.com/remix-run/remix/pull/7173)) - For preparation of using Node's built in fetch implementation, installing the fetch globals is now a responsibility of the app server ([#​7009](https://togithub.com/remix-run/remix/pull/7009)) - If you are using `remix-serve`, nothing is required - If you are using your own app server, you will need to install the globals yourself ```js filename=server.js import { installGlobals } from "@​remix-run/node"; installGlobals(); ``` - `source-map-support` is now a responsibility of the app server ([#​7009](https://togithub.com/remix-run/remix/pull/7009)) - If you are using `remix-serve`, nothing is required - If you are using your own app server, you will need to install [`source-map-support`](https://www.npmjs.com/package/source-map-support) yourself. ```sh npm i source-map-support ``` ```js filename=server.js import sourceMapSupport from "source-map-support"; sourceMapSupport.install(); ``` ##### Patch Changes - Update `remix-serve` usage error message to support ESM projects ([#​7400](https://togithub.com/remix-run/remix/pull/7400)) - Updated dependencies: - `@remix-run/node@2.0.0` - `@remix-run/express@2.0.0`

Configuration

πŸ“… Schedule: Branch creation - "before 4am on Monday" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

β™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

πŸ”• Ignore: Close this PR and you won't be reminded about these updates again.



This PR has been generated by Mend Renovate. View repository job log here.

renovate[bot] commented 1 year ago

⚠ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

β™» Renovate will retry this branch, including artifacts, only when one of the following happens:

The artifact failure details are included below:

File name: package-lock.json
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: kpop-stack-template@undefined
npm ERR! Found: react@17.0.2
npm ERR! node_modules/react
npm ERR!   react@"^17.0.2" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^18.0.0" from @remix-run/react@2.0.0
npm ERR! node_modules/@remix-run/react
npm ERR!   @remix-run/react@"^2.0.0" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
npm ERR! 
npm ERR! For a full report see:
npm ERR! /tmp/worker/daa3ac/7212a0/cache/others/npm/_logs/2023-09-18T00_36_20_997Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in: /tmp/worker/daa3ac/7212a0/cache/others/npm/_logs/2023-09-18T00_36_20_997Z-debug-0.log
netlify[bot] commented 1 year ago

Deploy Preview for kpop-stack failed.

Name Link
Latest commit 83ed1081bd6da8a4efe62d979c3c1177d35c30e8
Latest deploy log https://app.netlify.com/sites/kpop-stack/deploys/65079b8ec5442d0007f2422b