Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update remix monorepo to v1.7.2 #41

Merged
merged 1 commit into from
Sep 21, 2022
Merged

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jul 16, 2022

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@remix-run/dev (source) 1.1.1 -> 1.7.2 age adoption passing confidence
@remix-run/express 1.1.1 -> 1.7.2 age adoption passing confidence
@remix-run/react 1.1.1 -> 1.7.2 age adoption passing confidence
remix (source) 1.1.1 -> 1.7.2 age adoption passing confidence

Release Notes

remix-run/remix (@​remix-run/dev)

v1.7.2

Compare Source

Patch Changes
  • Updated dependencies:
    • @remix-run/server-runtime@1.7.2
    • @remix-run/serve@1.7.2

v1.7.1

Compare Source

Patch Changes
  • Updated dependencies:
    • @remix-run/server-runtime@1.7.1
    • @remix-run/serve@1.7.1

v1.7.0

Compare Source

Minor Changes
  • Added support for importing .gql and .graphql files as plain text (#​3923)
  • Added support for importing .zip and .avif files as resource URLs (#​3985)
Patch Changes
  • Removed our compiler's React shim in favor of esbuild's new automatic JSX transform (#​3860)
  • Updated dependencies:
    • @remix-run/server-runtime@1.7.0
    • @remix-run/serve@1.7.0

v1.6.8

Compare Source

Patch Changes
  • Added support for .mjs and .cjs file extensions for remix.config (#​3675)
  • Added support for importing .sql files as text content (#​3190)
  • Updated the compiler to make MDX builds deterministic (and a little faster!) (#​3966)
  • Updated dependencies:
    • @remix-run/server-runtime@1.6.8
    • @remix-run/serve@1.6.8

v1.6.7

Compare Source

Patch Changes
  • Remove logical nullish assignment, which is incompatible with Node v14. (#​3880)
  • Don't show ESM warnings when consumed via dynamic import. (#​3872)
  • Updated dependencies:
    • @remix-run/serve@1.6.7
    • @remix-run/server-runtime@1.6.7

v1.6.6

Compare Source

Patch Changes
  • Write server build output files so that only assets imported from resource routes are written to disk (#​3817)
  • Add support for exporting links in .mdx files (#​3801)
  • Ensure that build hashing is deterministic (#​2027)
  • Fix types for @remix-run/dev/server-build virtual module (#​3743)
  • Updated dependencies:
    • @remix-run/serve@1.6.6
    • @remix-run/server-runtime@1.6.6

v1.6.5

Compare Source

Patch Changes
  • Update serverBareModulesPlugin warning to use full import path (#​3656)
  • Fix broken --port flag in create-remix (#​3694)
  • Updated dependencies
    • @remix-run/server-runtime
    • @remix-run/serve

v1.6.4

Compare Source

What's Changed

🐛 Bug fixes
  • Fixed a regression with Node v18.3 by making the detection of IPv4 addresses more durable in @remix-run/serve and @remix-run/dev (#​3602)
  • Fix Yarn PnP resolution for empty modules (#​3633)
💅 Enhancements
  • Add watchPaths option for remix.config. This allows you to define custom directories to watch while running remix dev (#​3188).

New Contributors

Full Changelog: remix-run/remix@v1.6.3...v1.6.4

v1.6.3

Compare Source

This release fixes issues with some supported deep imports when bundling your server.

v1.6.2

Compare Source

What's Changed

🐛 Bug Fixes
  • Fixed module resolution issues when installing via Yarn 3 (#​1316, #​3579)
  • Fixed revalidation issues when following multiple redirects (#​3460)
  • Fixed private stack validation in the create-remix CLI (#​2804)
💅 Enhancements
  • The Remix compiler should tree-shake a bit more aggressively in dev mode, resulting in less dead code (#​3588)

New Contributors

Full Changelog: remix-run/remix@v1.6.1...v1.6.2-pre.0

v1.6.1

Compare Source

What's Changed

This release includes a few small bug fixes and DX improvements. Check out the full changelog to see what's new! ✨

New Contributors

Full Changelog: remix-run/remix@v1.6.0...v1.6.1

v1.6.0

Compare Source

What Changed?

☠️ Deprecated

Imports from the remix package are now officially deprecated. We added ESLint warnings to help you catch these (#​3285). We also provide a codemod to make the necessary changes to prepare for a future breaking change. Run npx @​remix-run/dev migrate to initiate the codemod.

See the release notes for v1.4.0 for more details on this change.

💅 Enhancements
  • We now export a few more helpful types from @remix-run/react (#​2876)
  • Added a --port flag to the remix dev script (#​3447)
🐛 Bug fixes
  • Fixed cookies to default to sameSite: "lax" to better align with browsers (#​2388)
  • Normalized imageSrcSet / imageSizes props for links depending on the React version used (#​2944)
  • Added some missing dependencies to @remix-run/dev (#​3413)
  • Added a fix to use the correct error/catch boundary on SSR action errors (#​3436)

New Contributors

Full Changelog: remix-run/remix@v1.5.1...v1.6.0

v1.5.1

Compare Source

What's Changed
💅 Enhancements
  • Added Deno to the list of options in the create-remix CLI 🦕 (#​3233)

Full Changelog: remix-run/remix@v1.5.0...v1.5.1

v1.5.0

Compare Source

Welcome to version 1.5 of Remix. Can you believe that we are already 1.5 years versions old? Time flies when you're building fun web frameworks!

We've got a few things that we're excited to share with this one, so let's get started 💿 💿 💿

Official support for Deno

Your scientists were so preoccupied with whether they could that they didn't stop to think if they should.

Dr. Ian Malcolm, Jurassic Park


A short while ago we rolled out a new adapter with experimental support for building on top of Deno. At long last, the mad scientists at Remix are now ready to announce a major breakthrough:

Remix now officially supports Deno. 🦕

Apart from compiler-related changes, Deno support comes in the form of:

  1. a brand new @remix-run/deno package
  2. an updated Deno template (npx create-remix@latest --template deno)

We couldn't be more excited to see what Deno enables for your future Remix projects. Deno takes a very different approach than most other JS runtimes, and we learned some big lessons while implementing our adapter. For those curious, check out a some tricky Deno-related decisions we made along the way.

It was tough going at times, but as Dr. Malcolm would say: life the compiler finds a way 🦖

Moving closer to The Platform™

One of our driving forces with Remix is to use web standards and get to connect developers more closely to them with our APIs.

In the olden days, the only JavaScript runtime was the one implemented by browsers, but Node changed the game for everyone. In those days, many standards and APIs necessary to build a proper JS server runtime didn't exist, so the good folks working on Node had to invent them for us. Or in many cases we'd get "polyfills" for new standards from third-party libraries like node-fetch.

These were innovative times, and moving quickly allowed devs to ship more quickly. But inconsistency between runtimes also created a lot of problems. Thankfully we are getting closer than ever to consensus-driven solutions, and Remix is moving towards this new, more standardized approach.

We have removed our dependency on node-fetch and moved forward with our own implementation that gets closer to the living Fetch Standard. This opens the door to new features in your loaders and actions—you can now return ReadableStream in the body of your response, which allows you to stream data from your server and paves the way for the new streaming APIs in React 18.

This comes at an exciting time for the web, as just a few weeks ago we saw the formation of a new Web-interoperable Runtimes Community Group. We've never been more optimistic about the web, and we see this change as a necessary first step to embrace its future.


What's Changed
✨ Features
  • Replaced node-fetch with @remix-run/web-fetch for a more standards-based fetch implementation (#​2736)
  • Launched official support for Deno (#​3117)
💅 Enhancements
  • Made a few improvements in our experimental Netlify Edge adapter (#​3107)
🐛 Bug fixes
  • Fixed support for JSX in .js route files (#​3059)
  • Fixed issues with package manager detection (#​3109)
  • Fixed the packageExports map (#​3189)
  • Avoid duplicate loader calls when using prefetch-intent (#​2938)
⚠️ Unstable API changes
  • unstable_parseMultipartFormData no longer operates on a Node.js stream, this has been changed to an AsyncIterable<Uint8Array> called data to bring this functionality to all platforms (#​2736)
  • unstable_parseMultipartFormData no longer parses fields automatically for you; instead use unstable_composeUploadHandlers to combine multiple upload handlers (#​2736)
New Contributors

Full Changelog: remix-run/remix@v1.4.3...v1.5.0

v1.4.3

Compare Source

This release reverts #​2875, which cleans build directories before starting a new build. This behavior caused some unintended problems for some folks using external processes. See https://github.com/remix-run/remix/pull/2875#issuecomment-1111515063

v1.4.2

Compare Source

What's Changed

🐛 Bug fixes
  • Reverted a change in <LiveReload /> that prevented it from running without scripts hydration (#​2874)
  • Updated default tsconfig.json settings when creating a new project to fix compiler issues (#​2786)
💅 Enhancements
  • We will now clean build directories before each initial build (#​2875)

New Contributors

Full Changelog: remix-run/remix@v1.4.1...v1.4.2-pre.0

v1.4.1

Compare Source

What's Changed

🐛 Bug fixes
  • Fixed a few issues with LiveReload (#​2783)
  • Fixed a few more issues with the migrate script (#​2784, #​2787, #​2790)
  • Updated create-remix to use the correct path separator for Windows users (#​2763)
  • Ensured parent loaders are called on fetchActionRedirect (#​2838)
  • @remix-run/deno: Fixed a property read error in causing the dev server to crash (#​2805)
  • @remix-run/deno: Removed the platform arg in createRequestHandler (#​2818)

New Contributors

Full Changelog: remix-run/remix@v1.4.0...v1.4.1

v1.4.0

Compare Source

In this release, we have decided on what we think is a better way to implement or to import our modules in your Remix projects. What exactly does this mean?

Upcoming changes to module imports

Today you can import all Remix modules from the remix package, whether they are server side or client side, node.js or cloudflare:

import { Link, json } from "remix";
  • Link is actually coming from @remix-run/react
  • json is coming from either @remix-run/node or @remix-run/cloudflare

We call these "magic imports" because they work with a bit of magic in the remix setup script.

In this release, we are encouraging you to update your imports to the actual packages that the modules come from with a migrate script that will do the work for you:

- import { Link, json } from "remix"
+ import { Link } from "@&#8203;remix-run/react"
+ import { json } from "@&#8203;remix-run/node"
What do I do next?

This release doesn't break your existing code. Your old imports are still supported. Because magic imports will eventually be deprecated, this release includes a migrate script to get your code updated beforehand. This script will:

  • update your imports to the proper packages
  • make any Remix-specific changes to your package.json
  • outline any manual work that might be needed on your part

To execute the script in your project:

  1. Upgrade @remix-run/dev to v1.4.0 (should be in your devDependencies)
  2. Run npx @&#8203;remix-run/dev@latest migrate from your project root and follow the prompts

That's it, you're done!

Background

Because Remix runs in multiple platforms as well as in the browser, we thought it would make development easier to not have to worry about the server environment or browser when importing modules: everything could be imported from remix.

To make this work, the remix setup script copied the exports from @remix-run/react and @remix-run/{runtime} ( @remix-run/node, @remix-run/cloudflare, @remix-run/deno) to node_modules/remix. This way it didn't matter which environment you were deploying to, everything came from remix.

While this is nice when importing modules, it has a number of problems:

  • Various deploy targets use node_modules differently, and getting things to "just work" has created issues with deploying to those platforms
  • It breaks alternative package managers like pnpm and Yarn PnP
  • We're all running remix setup manually way more often than we'd like

Because of this, we'll soon be deprecating the "magic imports". This release does not deprecate them, it simply provides the migration script so you can move off of magic imports sooner than later.

What's Changed

✨ Features
  • @remix-run/dev: Introduce the migrate command to replace remix imports with specific @remix-run modules (#​2670)
🐛 Bug fixes
  • Auto-detect package manager when installing via create-remix (#​2562)
  • Fix Remix templates create-remix when the conflict with local files with the same name (#​2733)
💅 Enhancements
  • Improvements to remix-serve to prevent crashing on various Node signals (#​2528, #​1822)
  • Make getDependenciesToBundle more resilient to misconfigured packages.json (#​2593)

New Contributors

Full Changelog: remix-run/remix@v1.3.5...v1.4.0

v1.3.5

Compare Source

What's Changed

🐛 Bug fixes
  • Fixed an issue in our linked sourcemaps to improve debugging (#​2065)
  • Fixed a bug that caused an error when cookie serializing data that contains non-ascii characters (#​2257)
  • Fixed broken path aliases other than ~ in tsconfig.json (#​2412)
  • Fixed a few issues with LiveReload during development (#​2662)
  • Add a missing hash when redirecting from the client (#​2581)
  • Fixed an issue with the request URL scheme in the @remix-run/arc adapter (#​1537)
  • Fixed a bug causing an invalid content-type from request.formData() in route actions (#​2595)
  • Fixed issues in @remix-run/arc, @remix-run/node and @remix-run/netlify with multipart formData (#​2495, #​2657)
  • Fixed a few bugs causing server code to show up in browser bundles (#​2652)
💅 Enhancements
  • Overhauled our CLI to make bootstrapping a new app much faster and simpler 🏃‍♀️
  • Improved error handling when server code inadvertantly ends up in your browser bundle (#​2403)
  • Added a warning when using ESM-only packages not included in serverDependenciesToBundle (#​2558)
  • Added a nonce prop to LiveReload and ScrollRestoration components to work with nonce-based CSPs (#​2043)
  • Added support in the @remix-run/cloudflare-workers adapter for @cloudflare/workers-types v3 (#​2530)
  • Fixed a few missing types in @remix-run/cloudflare-pages (#​2513)

New Contributors

Full Changelog: remix-run/remix@v1.3.4...v1.3.5

v1.3.4

Compare Source

What's Changed

🐛 Bug fixes
  • Previously when submitting an action from a layout route, we were losing the nested index route during revalidation. This has been fixed. (#​2466)
  • More fixes for the experimental deno adapter! 🦕 (#​2514)
  • @remix-run/server-runtime will now throw error when a cookie limit is reached (#​2155)

New Contributors

Full Changelog: remix-run/remix@v1.3.3...v1.3.4

v1.3.3

Compare Source

What's Changed

💅 Enhancements
  • We made some internal changes that will deprecate the remix setup command. This will eventually enable better cross-platform runtime support and work more consistently with package managers like pnpm and Yarn PnP. (#​2359, #​2434) We'll have more to say about this soon!
🐛 Bug fixes
  • Keys in the object returned by a route's meta export that were undefined would previous render a meta tag without a value. Empty meta values will no longer render a tag. (#​2411)
  • Fixed a bug where transitions were not revalidating requests with a redirect response that sets cookies (#​2370)

New Contributors

Full Changelog: remix-run/remix@v1.3.2...v1.3.3

v1.3.2

Compare Source

This release fixes a bug in the create-remix CLI for Windows users working with the base templates.

New Contributors

Full Changelog: remix-run/remix@v1.3.1...v1.3.2

v1.3.1

Compare Source

This release addresses a hot-fix for a bug in the create-remix CLI. See release notes for version 1.3.0 for details!

v1.3.0

Compare Source

Buckle up folks, we've got a big new feature to talk about. Let's geat ready for...

🥞 New Feature: Remix Stacks

We're excited to announce the official release of Remix Stacks! Stacks allow you to quickly create templates for Remix projects, pre-configured with some of our favorite tools in the ecosystem. You can think of our basic templates as a set of AA batteries, whereas Stacks are lithium ion 🔋⚡️. Even better, you can create your own stack and bootstrap it just as easily!

We think this will help you get started with Remix faster and easier than ever. Start using Stacks with npx create-remix@latest and choose "A pre-configured stack ready for production". Read more about stacks in the stacks docs page.

🧪 Experimental: Improved Deno support

In v1.2.0 we announced experimental support for build Remix on Deno. While it's still early days, this release builds on those foundations and fixes several issues we found working closely with the Deno core team.

We're excited to chart these wide open waters. Deno still feels new to a lot of us, but that's largely because our tools haven't caught up and we're aiming to change that. Deno has been stable for over a year and has an incredible team behind it. If you're as excited about it as we are, we'd love it if you'd help us kick the tires by bootstrapping your next app with npx create-remix@latest --template deno-ts. 🦕


TLDR: What Changed?

✨ Features
  • Remix Stacks: A brand new way to bootstrap your Remix app with your favorite tooling ready to go. Read more on the stacks docs page.
  • Introduced the new actionRedirect type for useFetcher (#​2188). This represents when the action from an actionSubmission returns a redirect and the page is transitioning to the new location. It corrects fetcher action redirects to follow the same lifecycle as navigation transitions. Read more about this change and managing complex transitions in Transition Manager Flows.
💅 Enhancements

@remix-run/netlify: Updates the serverBuildPath to use Netlify's internal functions directory (#​2291)

🐛 Bug fixes
  • @remix-run/architect: Added the missing module export createArcTableSessionStorage to the core remix package (#​1970)
  • Fixed a bug in our disambiguation logic for layout vs. index routes in fetcher submissions (#​2271 and #​2319)
  • Several bug fixes in our experimental Deno adapter and the related template.

New Contributors

Full Changelog: remix-run/remix@v1.2.3...v1.3.0

v1.2.3

Compare Source

What's Changed

🐛 Bug fixes
  • Fixed a few bugs in React Router and History
  • Fixed a bug where Form and fetcher.Form submissions would throw if an input was named action or method (#​1854)
  • Fixed a bug where imports using node: would send unneccesary warning messages (#​1232)
  • Fixed a bug where <link prefetch /> would only work as expected for routes with a loader (#​2096)
💅 Enhancements
  • Added an ESLint config to all templates in create-remix using the new @remix-run/eslint-config (#​2089)
  • remix dev will now load environment variables from .env using dotenv without additional configuration (#​2063)
  • Reduced the number of updates required in @remix-run/express when running in watch mode to restart the dev server more quickly (#​2094)

New Contributors

Full Changelog: remix-run/remix@v1.2.2...v1.2.3

v1.2.2

Compare Source

What Changed?

This release fixes a few pesky bugs, simplifies the default caching strategy in our Express starter, and improves a few error messages. Enjoy!

🐛 Bug fixes
  • Fixed a bug in our compiler that incorrectly handled modules that omit a default export (#​1998)
    • While this behavior was in fact a bug, it also means that apps that incorrectly import default from modules that don't expose a default export may have worked before and break after an update. Fixing this will require a small refactor:
      // old buggy code
      import fakeDefault from "some-module";
      // new, not-so-buggy code
      import * as fakeDefault from "some-module";
    • See https://github.com/evanw/esbuild/issues/2019#issuecomment-1041980825 for more details:
  • Fixed an issue causing loaders to revalidate unneccessarily with unchanged search params (#​1965)
  • Fixed a bug with <ScrollRestoration /> where routes with a hash restored to the hashed element instead of the user's last scroll position. This fix improves the default UX for forward/back navigation. (#​1937)
  • Fixed an issue that caused .client files to be included in server builds (#​2019)
  • Updated our global environemtnt checks to support runtime targets that include window as a global variable (#​2025)
💅 Enhancements
  • Simplified the asset caching strategy in our Express template. This makes it easier for users to send more targeted cache headers for various types of requests. (#​1994)
New Contributors

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), 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.


  • If you want to rebase/retry this PR, click this checkbox.

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

@renovate renovate bot force-pushed the renovate/remix-monorepo branch from d20b33f to 59d6909 Compare July 29, 2022 21:07
@renovate renovate bot changed the title Update remix monorepo to v1.6.5 Update remix monorepo to v1.6.6 Jul 29, 2022
@renovate renovate bot force-pushed the renovate/remix-monorepo branch from 59d6909 to 8ee90f0 Compare July 30, 2022 17:48
@renovate renovate bot changed the title Update remix monorepo to v1.6.6 Update remix monorepo to v1.6.7 Jul 30, 2022
@renovate renovate bot changed the title Update remix monorepo to v1.6.7 Update remix monorepo to v1.6.8 Aug 12, 2022
@renovate renovate bot changed the title Update remix monorepo to v1.6.8 Update remix monorepo to v1.7.0 Aug 25, 2022
@jangerhofer jangerhofer enabled auto-merge (squash) September 1, 2022 15:16
@renovate renovate bot changed the title Update remix monorepo to v1.7.0 Update remix monorepo Sep 16, 2022
@renovate renovate bot changed the title Update remix monorepo Update remix monorepo to v1.7.1 Sep 16, 2022
@renovate renovate bot changed the title Update remix monorepo to v1.7.1 Update remix monorepo to v1.7.2 Sep 21, 2022
@jangerhofer jangerhofer merged commit 38e87d1 into master Sep 21, 2022
@jangerhofer jangerhofer deleted the renovate/remix-monorepo branch September 21, 2022 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant