BoBeenLee / bbl-nx

homepage
https://bbl-nx.vercel.app/
4 stars 0 forks source link

chore(deps): bump remix from 1.6.8 to 1.7.0 #84

Closed dependabot[bot] closed 2 years ago

dependabot[bot] commented 2 years ago

Bumps remix from 1.6.8 to 1.7.0.

Release notes

Sourced from remix's releases.

v1.7.0

What's Changed

✨ Features

  • We removed our compiler's React shim in favor of esbuild's new automatic JSX transformation.

    There are no code changes required on your end, but by using the new transform we can prevent duplicate React imports from appearing in your build.

    The automatic JSX transform was introduced in React 17, and it allows you to write your JSX code without ever needing to import React. This means that compilers need to map JSX to React.createElement for you.

    Because esbuild previously didn't support this feature, we implemented a "shim" for the import to get the same affect. This unfortunately has caused problems with some external libraries, resulting in React being declared multiple times. (#2987)

    You still need to import modules from React that you use directly in your code (useState, useEffect, etc.). But if your component only needs the React import for JSX, you can safely omit it without worrying about duplicate imports.

  • The MetaFunction type can now infer data and parentsData types from route loaders.

    For example, if this meta function is exported from app/routes/sales/customers/$customerId:

    const meta: MetaFunction<
      typeof loader, // this will infer our type for `data`
      {
        root: RootLoader; // exported from the root route
        "routes/sales": SalesLoader; // exported from the sales route
        "routes/sales/customers": CustomersLoader; // exported from the sales/customers route
      }
    > = ({ data, parentsData }) => {
      ///
    };
    

    The meta function can be strongly typed by exposing each parent route's loader type:

    // app/root.tsx
    const loader = () => {
      return json({ hello: "world" } as const);
    };
    export type Loader = typeof loader;
    

    // app/routes/sales.tsx const loader = () => { return json({ salesCount: 1074 }); }; export type Loader = typeof loader;

    // app/routes/sales/customers.tsx const loader = () => { return json({ customerCount: 74 });

... (truncated)

Commits


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
vercel[bot] commented 2 years ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment | Name | Status | Preview | Updated | | :--- | :----- | :------ | :------ | | **bbl-nx** | ⬜️ Ignored ([Inspect](https://vercel.com/bobeenlee/bbl-nx/BfZSvwwhM1NNRFBUCGSC2hvTjymn)) | | Sep 10, 2022 at 8:41AM (UTC) |
dependabot[bot] commented 2 years ago

Looks like remix is no longer updatable, so this is no longer needed.