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 TS module resolutions in examples. #7872

Merged
merged 2 commits into from Apr 2, 2024

Conversation

anthonyshew
Copy link
Contributor

@anthonyshew anthonyshew commented Apr 1, 2024

Description

Updating so we don't use "moduleResolution": "node" in examples. It's outdated!

Closes TURBO-2737

@anthonyshew anthonyshew requested a review from a team as a code owner April 1, 2024 13:57
Copy link

vercel bot commented Apr 1, 2024

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

Name Status Preview Comments Updated (UTC)
examples-basic-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 1, 2024 2:10pm
examples-designsystem-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 1, 2024 2:10pm
examples-gatsby-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 1, 2024 2:10pm
examples-kitchensink-blog ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 1, 2024 2:10pm
examples-native-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 1, 2024 2:10pm
examples-nonmonorepo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 1, 2024 2:10pm
examples-svelte-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 1, 2024 2:10pm
examples-tailwind-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 1, 2024 2:10pm
examples-vite-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 1, 2024 2:10pm
rust-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 1, 2024 2:10pm

Copy link
Contributor

github-actions bot commented Apr 1, 2024

🟢 Turbopack Benchmark CI successful 🟢

Thanks

Copy link
Contributor

github-actions bot commented Apr 1, 2024

⚠️ CI failed ⚠️

The following steps have failed in CI:

  • Turbopack Rust benchmark tests (mac/win, non-blocking)

See workflow summary for details

@anthonyshew anthonyshew merged commit 6839aa2 into main Apr 2, 2024
50 of 52 checks passed
@anthonyshew anthonyshew deleted the examples-ts-module-resolutions branch April 2, 2024 03:18
@CarlosZiegler
Copy link

Maybe can be updated or ?

image

https://www.totaltypescript.com/tsconfig-cheat-sheet

kodiakhq bot added a commit to weareinreach/TransMascFutures that referenced this pull request Apr 2, 2024
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@prisma/adapter-neon](https://togithub.com/prisma/prisma) ([source](https://togithub.com/prisma/prisma/tree/HEAD/packages/adapter-neon)) | [`5.11.0` -> `5.12.0`](https://renovatebot.com/diffs/npm/@prisma%2fadapter-neon/5.11.0/5.12.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@prisma%2fadapter-neon/5.12.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@prisma%2fadapter-neon/5.12.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@prisma%2fadapter-neon/5.11.0/5.12.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@prisma%2fadapter-neon/5.11.0/5.12.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) |
| [@prisma/client](https://www.prisma.io) ([source](https://togithub.com/prisma/prisma/tree/HEAD/packages/client)) | [`5.11.0` -> `5.12.0`](https://renovatebot.com/diffs/npm/@prisma%2fclient/5.11.0/5.12.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@prisma%2fclient/5.12.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@prisma%2fclient/5.12.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@prisma%2fclient/5.11.0/5.12.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@prisma%2fclient/5.11.0/5.12.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) |
| [@types/node](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node) ([source](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node)) | [`20.12.2` -> `20.12.3`](https://renovatebot.com/diffs/npm/@types%2fnode/20.12.2/20.12.3) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@types%2fnode/20.12.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@types%2fnode/20.12.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@types%2fnode/20.12.2/20.12.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@types%2fnode/20.12.2/20.12.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) |
| [@types/react](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react) ([source](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react)) | [`18.2.73` -> `18.2.74`](https://renovatebot.com/diffs/npm/@types%2freact/18.2.73/18.2.74) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@types%2freact/18.2.74?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@types%2freact/18.2.74?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@types%2freact/18.2.73/18.2.74?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@types%2freact/18.2.73/18.2.74?slim=true)](https://docs.renovatebot.com/merge-confidence/) |
| [eslint-plugin-turbo](https://togithub.com/vercel/turbo) ([source](https://togithub.com/vercel/turbo/tree/HEAD/packages/eslint-plugin-turbo)) | [`1.13.1` -> `1.13.2`](https://renovatebot.com/diffs/npm/eslint-plugin-turbo/1.13.1/1.13.2) | [![age](https://developer.mend.io/api/mc/badges/age/npm/eslint-plugin-turbo/1.13.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/eslint-plugin-turbo/1.13.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/eslint-plugin-turbo/1.13.1/1.13.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/eslint-plugin-turbo/1.13.1/1.13.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) |
| [listr2](https://togithub.com/listr2/listr2) | [`8.1.3` -> `8.2.0`](https://renovatebot.com/diffs/npm/listr2/8.1.3/8.2.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/listr2/8.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/listr2/8.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/listr2/8.1.3/8.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/listr2/8.1.3/8.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) |
| [prisma](https://www.prisma.io) ([source](https://togithub.com/prisma/prisma/tree/HEAD/packages/cli)) | [`5.11.0` -> `5.12.0`](https://renovatebot.com/diffs/npm/prisma/5.11.0/5.12.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/prisma/5.12.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/prisma/5.12.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/prisma/5.11.0/5.12.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/prisma/5.11.0/5.12.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) |
| [turbo](https://turbo.build/repo) ([source](https://togithub.com/vercel/turbo)) | [`1.13.1` -> `1.13.2`](https://renovatebot.com/diffs/npm/turbo/1.13.1/1.13.2) | [![age](https://developer.mend.io/api/mc/badges/age/npm/turbo/1.13.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/turbo/1.13.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/turbo/1.13.1/1.13.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/turbo/1.13.1/1.13.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>prisma/prisma (@&#8203;prisma/adapter-neon)</summary>

### [`v5.12.0`](https://togithub.com/prisma/prisma/releases/tag/5.12.0)

[Compare Source](https://togithub.com/prisma/prisma/compare/5.11.0...5.12.0)

Today, we are excited to share the `5.12.0` stable release 🎉

🌟 **Help us spread the word about Prisma by starring the repo or [posting on X](https://twitter.com/intent/tweet?text=Check%20out%20the%20latest%20@&#8203;prisma%20release%20v5.12.0%20%F0%9F%9A%80%0D%0A%0D%0Ahttps://github.com/prisma/prisma/releases/tag/5.12.0) about the release.**

#### Highlights

##### Cloudflare D1 (Preview)

This release brings Preview support for [Cloudflare D1](https://developers.cloudflare.com/d1/) with Prisma ORM 🥳

D1 is Cloudflare’s SQLite database that can be used when deploying applications with Cloudflare.

When using Prisma ORM with D1, you can continue to: model your database with Prisma schema language, specify `sqlite` as your database provider in your Prisma schema, and interact with your database using Prisma Client.

To use Prisma ORM and D1 on Cloudflare Workers or Cloudflare Pages, you need to set `sqlite` as your database provider and use the `@prisma/adapter-d1` database adapter via the `driverAdapters` Preview feature, released back in version [5.4.0](https://togithub.com/prisma/prisma/releases/tag/5.4.0).

Here is an example of sending a query to your D1 database using Prisma Client in your Worker:

```ts
// src/index.ts file
import { PrismaClient } from '@&#8203;prisma/client'
import { PrismaD1 } from '@&#8203;prisma/adapter-d1'

// Add the D1Database to the Env interface
export interface Env {
// This must match the binding name defined in your wrangler.toml configuration
  DB: D1Database
}

export default {
  async fetch(
    request: Request,
    env: Env,
    ctx: ExecutionContext
  ): Promise<Response> {
    // Make sure the database name matches the binding name in wrangler.toml and Env interface
    const adapter = new PrismaD1(env.DB)
    // Instantiate PrismaClient using the PrismaD1 driver adapter
    const prisma = new PrismaClient({ adapter })

    const users = await prisma.user.findMany()
    const result = JSON.stringify(users)
    return new Response(result)
  },
}
```

📚 **Documentation:** [Deploying a Cloudflare worker with D1 and Prisma ORM](https://prisma.io/docs/orm/overview/databases/cloudflare-d1#how-to-connect-to-d1-in-cloudflare-workers-or-cloudflare-pages)

✍️ **Blog post:** [Build Applications at the Edge with Prisma ORM & Cloudflare D1 (Preview)](https://www.prisma.io/blog/build-applications-at-the-edge-with-prisma-orm-and-cloudflare-d1-preview)

📣 **Share your feedback:** [D1 Driver Adapter](https://togithub.com/prisma/prisma/discussions/23646)

🚀 **Example project:** [Deploy a Cloudflare Worker with D1](https://togithub.com/prisma/prisma-examples/tree/latest/deployment-platforms/edge/cloudflare-workers/with-d1)

##### `createMany()` for SQLite

Bringing support for `createMany()` in SQLite has been a [long-awaited and highly requested feature](https://togithub.com/prisma/prisma/issues/10710) ⭐

`createMany()` is a method on Prisma Client, released back in version [2.16.0](https://togithub.com/prisma/prisma/releases/tag/2.16.0), that lets you insert multiple records into your database at once. This can be really useful when seeding your database or inserting bulk data.

Here is an example of using `createMany()` to create new users:

```ts
const users = await prisma.user.createMany({
  data: [
    { name: 'Sonali', email: 'sonali@prisma.io' },
    { name: 'Alex', email: 'alex@prisma.io' },
    { name: 'Yewande', email: 'yewande@prisma.io' },
    { name: 'Angelina', email: 'angelina@prisma.io' },
  ],
})
```

Before this release, if you wanted to perform bulk inserts with SQLite, you would have most likely used `$queryRawUnsafe` to execute raw SQL queries. But now you don’t have to go through all that trouble 🙂

With SQLite, `createMany()` works exactly the same way from an API standpoint as it does with other databases except it does not support the `skipDuplicates` option. At the behavior level, SQLite will split `createMany()` entries into multiple `INSERT` queries when the model in your schema contains fields with attributes like `@default(dbgenerated())` or `@default(autoincrement())`  and when the fields are not consistently provided with values across the entries.

📚**Documentation:** [`createMany()` - Prisma Client API Reference](https://www.prisma.io/docs/orm/reference/prisma-client-reference#createmany)

#### Fixes and Improvements

##### Prisma Client

-   [N+1 Issue with `Decimal` data type and combining queries (batching)](https://togithub.com/prisma/prisma/issues/5952)
-   [Batched `findUnique()`  error out when the field is of `Boolean` type](https://togithub.com/prisma/prisma/issues/22384)
-   [`relationJoins` MySQL converts nested Decimal to float](https://togithub.com/prisma/prisma/issues/23233)
-   [Unexpected query leading to querying full table when using batched `findUnique()`](https://togithub.com/prisma/prisma/issues/23343)
-   [`node-postgres` (pg) errors with misleading `P2010 PrismaClientKnownRequestError` when using `@prisma/adapter-pg` with SSL (`?sslmode=require`)](https://togithub.com/prisma/prisma/issues/23390)
-   [D1 DateTime type does not work](https://togithub.com/prisma/prisma/issues/23479)

#### Credits

Huge thanks to [@&#8203;yubrot](https://togithub.com/yubrot), [@&#8203;skyzh](https://togithub.com/skyzh), [@&#8203;anuraaga](https://togithub.com/anuraaga), [@&#8203;onichandame](https://togithub.com/onichandame), [@&#8203;LucianBuzzo](https://togithub.com/LucianBuzzo), [@&#8203;RobertCraigie](https://togithub.com/RobertCraigie), [@&#8203;arthurfiorette](https://togithub.com/arthurfiorette), [@&#8203;elithrar](https://togithub.com/elithrar) for helping!

</details>

<details>
<summary>vercel/turbo (eslint-plugin-turbo)</summary>

### [`v1.13.2`](https://togithub.com/vercel/turbo/releases/tag/v1.13.2): Turborepo v1.13.2

[Compare Source](https://togithub.com/vercel/turbo/compare/v1.13.1...v1.13.2)



##### What's Changed

##### Examples

-   Update TS module resolutions in examples. by [@&#8203;anthonyshew](https://togithub.com/anthonyshew) in [vercel/turbo#7872

**Full Changelog**: vercel/turbo@v1.13.1...v1.13.2

</details>

<details>
<summary>listr2/listr2 (listr2)</summary>

### [`v8.2.0`](https://togithub.com/listr2/listr2/releases/tag/listr2%408.2.0)

[Compare Source](https://togithub.com/listr2/listr2/compare/listr2@&#8203;8.1.3...listr2@&#8203;8.2.0)

### listr2 [8.2.0](https://togithub.com/listr2/listr2/compare/listr2@&#8203;8.1.3...listr2@&#8203;8.2.0) (2024-04-02)

##### Features

-   expose root/subtask through listr and use it directly ([c5f8cab](https://togithub.com/listr2/listr2/commit/c5f8cab2d91877e825f8cf51080b926a3a2dcafc))

</details>

<details>
<summary>vercel/turbo (turbo)</summary>

### [`v1.13.2`](https://togithub.com/vercel/turbo/compare/v1.13.1...v1.13.2)

[Compare Source](https://togithub.com/vercel/turbo/compare/v1.13.1...v1.13.2)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 4am on Monday,before 4am on Thursday" (UTC), Automerge - At any time (no schedule defined).

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

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired.

---

 - [ ] If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/weareinreach/GLAAD).



PR-URL: #378
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants