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

[web] Include flags in custom events #140

Merged
merged 20 commits into from
May 23, 2024
Merged

[web] Include flags in custom events #140

merged 20 commits into from
May 23, 2024

Conversation

AndyBitz
Copy link
Contributor

@AndyBitz AndyBitz commented Apr 9, 2024

Fixes FLA-1083

Follow up to and requires https://github.com/vercel/front/pull/31293
Ensures that the flags can be passed to the analytics script.

Copy link

vercel bot commented Apr 9, 2024

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

Name Status Preview Comments Updated (UTC)
analytics-nextjs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 23, 2024 9:35am
analytics-remix ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 23, 2024 9:35am

packages/web/src/server/index.ts Outdated Show resolved Hide resolved
packages/web/src/server/index.ts Outdated Show resolved Hide resolved
packages/web/src/server/index.ts Outdated Show resolved Hide resolved
Copy link
Member

@feugy feugy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would recommend we add flags tracked key list to the Analytics React component, and pass it down to the pageview() function.

We should event pass it as a data-attribute to the injected <script>, so it could be used as a default list, in case users don't want to provide the flags option to every track call. It's a bit more work.

For readability purpose, we should name this data attribute data-flag-keys or data-tracked-flag-keys, as well as function parameters.

This adds, with little to no code, control over the tracked flag keys for page views.

We could even use

packages/web/src/server/index.ts Show resolved Hide resolved
packages/web/src/server/index.ts Outdated Show resolved Hide resolved
packages/web/src/server/index.ts Outdated Show resolved Hide resolved
packages/web/src/generic.ts Show resolved Hide resolved
Copy link
Member

@feugy feugy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In addition to the small changes here, you'll need to adjust the react component so it takes a list of tracked keys, and populates the script data attribute.
The script will then use them for page views.

To move further, you can bump the package version as alpha, bounded to your script on the preview deployment. This will allow testing it end to end.

packages/web/src/generic.ts Show resolved Hide resolved
packages/web/src/generic.ts Show resolved Hide resolved
packages/web/src/server/index.ts Outdated Show resolved Hide resolved
kodiakhq bot referenced this pull request in mheob/ef-calc Jun 26, 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 |
|---|---|---|---|---|---|
| [@mheob/prettier-config](https://togithub.com/mheob/config/tree/main/packages/prettier-config) ([source](https://togithub.com/mheob/config)) | [`3.2.0` -> `3.3.1`](https://renovatebot.com/diffs/npm/@mheob%2fprettier-config/3.2.0/3.3.1) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@mheob%2fprettier-config/3.3.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@mheob%2fprettier-config/3.3.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@mheob%2fprettier-config/3.2.0/3.3.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@mheob%2fprettier-config/3.2.0/3.3.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) |
| [@mheob/tsconfig](https://togithub.com/mheob/config/tree/main/packages/tsconfig) ([source](https://togithub.com/mheob/config)) | [`2.0.0` -> `2.1.0`](https://renovatebot.com/diffs/npm/@mheob%2ftsconfig/2.0.0/2.1.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@mheob%2ftsconfig/2.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@mheob%2ftsconfig/2.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@mheob%2ftsconfig/2.0.0/2.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@mheob%2ftsconfig/2.0.0/2.1.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.11` -> `20.14.8`](https://renovatebot.com/diffs/npm/@types%2fnode/20.12.11/20.14.8) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@types%2fnode/20.14.8?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@types%2fnode/20.14.8?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@types%2fnode/20.12.11/20.14.8?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@types%2fnode/20.12.11/20.14.8?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.3.1` -> `18.3.3`](https://renovatebot.com/diffs/npm/@types%2freact/18.3.1/18.3.3) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@types%2freact/18.3.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@types%2freact/18.3.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@types%2freact/18.3.1/18.3.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@types%2freact/18.3.1/18.3.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) |
| [@vercel/analytics](https://togithub.com/vercel/analytics) ([source](https://togithub.com/vercel/analytics/tree/HEAD/packages/web)) | [`1.2.2` -> `1.3.1`](https://renovatebot.com/diffs/npm/@vercel%2fanalytics/1.2.2/1.3.1) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@vercel%2fanalytics/1.3.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@vercel%2fanalytics/1.3.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@vercel%2fanalytics/1.2.2/1.3.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@vercel%2fanalytics/1.2.2/1.3.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) |
| [@vitejs/plugin-react](https://togithub.com/vitejs/vite-plugin-react/tree/main/packages/plugin-react#readme) ([source](https://togithub.com/vitejs/vite-plugin-react/tree/HEAD/packages/plugin-react)) | [`4.2.1` -> `4.3.1`](https://renovatebot.com/diffs/npm/@vitejs%2fplugin-react/4.2.1/4.3.1) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@vitejs%2fplugin-react/4.3.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@vitejs%2fplugin-react/4.3.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@vitejs%2fplugin-react/4.2.1/4.3.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@vitejs%2fplugin-react/4.2.1/4.3.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) |
| [prettier](https://prettier.io) ([source](https://togithub.com/prettier/prettier)) | [`3.2.5` -> `3.3.2`](https://renovatebot.com/diffs/npm/prettier/3.2.5/3.3.2) | [![age](https://developer.mend.io/api/mc/badges/age/npm/prettier/3.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/prettier/3.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/prettier/3.2.5/3.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/prettier/3.2.5/3.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) |
| [typescript](https://www.typescriptlang.org/) ([source](https://togithub.com/Microsoft/TypeScript)) | [`5.4.5` -> `5.5.2`](https://renovatebot.com/diffs/npm/typescript/5.4.5/5.5.2) | [![age](https://developer.mend.io/api/mc/badges/age/npm/typescript/5.5.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/typescript/5.5.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/typescript/5.4.5/5.5.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/typescript/5.4.5/5.5.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) |
| [vite](https://vitejs.dev) ([source](https://togithub.com/vitejs/vite/tree/HEAD/packages/vite)) | [`5.2.11` -> `5.3.1`](https://renovatebot.com/diffs/npm/vite/5.2.11/5.3.1) | [![age](https://developer.mend.io/api/mc/badges/age/npm/vite/5.3.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/vite/5.3.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/vite/5.2.11/5.3.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/vite/5.2.11/5.3.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>mheob/config (@&#8203;mheob/prettier-config)</summary>

### [`v3.3.1`](https://togithub.com/mheob/config/releases/tag/%40mheob/prettier-config%403.3.1)

[Compare Source](https://togithub.com/mheob/config/compare/@mheob/prettier-config@3.3.0...@mheob/prettier-config@3.3.1)

##### Patch Changes

-   [#&#8203;182](https://togithub.com/mheob/config/pull/182) ([@&#8203;mheob](https://togithub.com/mheob)): Improve `README.md` file and add spell checker.

### [`v3.3.0`](https://togithub.com/mheob/config/releases/tag/%40mheob/prettier-config%403.3.0)

[Compare Source](https://togithub.com/mheob/config/compare/@mheob/prettier-config@3.2.1...@mheob/prettier-config@3.3.0)

##### Minor Changes

-   [#&#8203;179](https://togithub.com/mheob/config/pull/179) ([@&#8203;mheob](https://togithub.com/mheob)): Improve prettier config and output.

### [`v3.2.1`](https://togithub.com/mheob/config/releases/tag/%40mheob/prettier-config%403.2.1)

[Compare Source](https://togithub.com/mheob/config/compare/@mheob/prettier-config@3.2.0...@mheob/prettier-config@3.2.1)

### [@&#8203;mheob/prettier-config](https://togithub.com/mheob/prettier-config)

#### 3.2.0

##### Minor Changes

-   [#&#8203;149](https://togithub.com/mheob/config/pull/149) ([@&#8203;mheob](https://togithub.com/mheob)): remove line wraps in markdown files

#### 3.1.1

##### Patch Changes

-   [#&#8203;145](https://togithub.com/mheob/config/pull/145) ([@&#8203;mheob](https://togithub.com/mheob)): update dependencies

#### 3.1.0

##### Minor Changes

-   [#&#8203;133](https://togithub.com/mheob/config/pull/133) ([@&#8203;mheob](https://togithub.com/mheob)): bump prettier to version 3

#### 3.0.1

##### Patch Changes

-   fix the README files after the change of using ESLint to fix the imports --> ([#&#8203;109](https://togithub.com/mheob/config/pull/109)) by [@&#8203;mheob](https://togithub.com/mheob)

#### 3.0.0

##### Major Changes

-   remove `@trivago/prettier-plugin-sort-imports` --> ([#&#8203;102](https://togithub.com/mheob/config/pull/102)) by [@&#8203;mheob](https://togithub.com/mheob)

##### Patch Changes

-   chore(deps): update all non-major dependencies --> ([#&#8203;95](https://togithub.com/mheob/config/pull/95)) by [@&#8203;renovate](https://togithub.com/apps/renovate)

#### 2.0.3

##### Patch Changes

-   update dependencies --> ([#&#8203;81](https://togithub.com/mheob/config/pull/81)) by [@&#8203;mheob](https://togithub.com/mheob)

-   update dependencies --> ([#&#8203;86](https://togithub.com/mheob/config/pull/86)) by [@&#8203;mheob](https://togithub.com/mheob)

-   update dependencies --> ([#&#8203;84](https://togithub.com/mheob/config/pull/84)) by [@&#8203;renovate](https://togithub.com/apps/renovate)

#### 2.0.2

##### Patch Changes

-   [#&#8203;71](https://togithub.com/mheob/config/pull/71) [`b79f37d`](https://togithub.com/mheob/config/commit/b79f37d8ede49c113938fa72389ce2277485ccbb) Thanks [@&#8203;mheob](https://togithub.com/mheob)! - Remove obsolete `prettier-plugin-jsdoc` package

#### 2.0.1

##### Patch Changes

-   [#&#8203;63](https://togithub.com/mheob/config/pull/63) [`49204ca`](https://togithub.com/mheob/config/commit/49204ca26b3c0b1d4efa11f7f3ef06166fbe8873) Thanks [@&#8203;mheob](https://togithub.com/mheob)! - Add the newest ruleset to the README

-   [#&#8203;60](https://togithub.com/mheob/config/pull/60) [`12b3867`](https://togithub.com/mheob/config/commit/12b38679f9fa123e20e634932ae1c8e277421464) Thanks [@&#8203;mheob](https://togithub.com/mheob)! - Update dependencies

#### 2.0.0

##### Major Changes

-   [#&#8203;42](https://togithub.com/mheob/config/pull/42) [`cf8ba94`](https://togithub.com/mheob/config/commit/cf8ba94f23489673593eb101dcab47af445054a0) Thanks [@&#8203;mheob](https://togithub.com/mheob)! - Switch from spaces to tabs as indentation

##### Minor Changes

-   [#&#8203;52](https://togithub.com/mheob/config/pull/52) [`8bc72cd`](https://togithub.com/mheob/config/commit/8bc72cd4844ce2e7bb224a00dbaf7117efd81269) Thanks [@&#8203;mheob](https://togithub.com/mheob)! - Use spaces instead of tabs in yaml files

##### Patch Changes

-   [#&#8203;46](https://togithub.com/mheob/config/pull/46) [`6f731ee`](https://togithub.com/mheob/config/commit/6f731eeba2c6cf3f8e8ce896e19069bc88d45557) Thanks [@&#8203;mheob](https://togithub.com/mheob)! - Switch to typescript as source files

-   [#&#8203;42](https://togithub.com/mheob/config/pull/42) [`cf8ba94`](https://togithub.com/mheob/config/commit/cf8ba94f23489673593eb101dcab47af445054a0) Thanks [@&#8203;mheob](https://togithub.com/mheob)! - Format all files to the new tabs instead of spaces behaviour

-   [#&#8203;36](https://togithub.com/mheob/config/pull/36) [`fd1474e`](https://togithub.com/mheob/config/commit/fd1474e0bcb9d6495a53358b4da62ec7d4754994) Thanks [@&#8203;mheob](https://togithub.com/mheob)! - Update dependencies

#### 1.4.0

##### Minor Changes

-   [`70cbb2c`](https://togithub.com/mheob/config/commit/70cbb2c): Add typescript definitions

#### 1.3.1

##### Patch Changes

-   [`87fb7e0`](https://togithub.com/mheob/config/commit/87fb7e0): Update all dependencies

#### 1.3.0

##### Minor Changes

-   [`347593b`](https://togithub.com/mheob/config/commit/347593b): Set markdown `printWidth` to `130`.

##### Patch Changes

-   [`347593b`](https://togithub.com/mheob/config/commit/347593b): Improve README to get a better copy/paste experience.

#### 1.2.1

##### Patch Changes

-   [`7d96f86`](https://togithub.com/mheob/config/commit/7d96f86): Update all dependencies

#### 1.2.0

##### Minor Changes

-   [`ad1fc96`](https://togithub.com/mheob/config/commit/ad1fc96): Add `prettier-plugin-jsdoc` to the prettier config.

#### 1.1.0

##### Minor Changes

-   [`76f0a62`](https://togithub.com/mheob/config/commit/76f0a62): Add some more rules like using tabs and some more.

#### 1.0.0

##### Major Changes

-   [`723ce7d`](https://togithub.com/mheob/config/commit/723ce7d): Initial configuration

</details>

<details>
<summary>vercel/analytics (@&#8203;vercel/analytics)</summary>

### [`v1.3.1`](https://togithub.com/vercel/analytics/releases/tag/1.3.1)

[Compare Source](https://togithub.com/vercel/analytics/compare/1.3.0...1.3.1)

#### What's Changed

-   fix: nextjs parallel routes with catchall isn't supported by [@&#8203;feugy](https://togithub.com/feugy) in [https://github.com/vercel/analytics/pull/141](https://togithub.com/vercel/analytics/pull/141)

**Full Changelog**: vercel/analytics@1.3.0...1.3.1

### [`v1.3.0`](https://togithub.com/vercel/analytics/releases/tag/1.3.0)

[Compare Source](https://togithub.com/vercel/analytics/compare/1.2.2...1.3.0)

#### What's Changed

-   feat: include flags in custom events and page views by [@&#8203;AndyBitz](https://togithub.com/AndyBitz), [@&#8203;tobiaslins](https://togithub.com/tobiaslins), [@&#8203;feugy](https://togithub.com/feugy)  in [https://github.com/vercel/analytics/pull/140](https://togithub.com/vercel/analytics/pull/140)

**Full Changelog**: vercel/analytics@1.2.2...1.3.0

</details>

<details>
<summary>vitejs/vite-plugin-react (@&#8203;vitejs/plugin-react)</summary>

### [`v4.3.1`](https://togithub.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react/CHANGELOG.md#431-2024-06-10)

[Compare Source](https://togithub.com/vitejs/vite-plugin-react/compare/v4.3.0...v4.3.1)

##### Fix support for React Compiler with React 18

The previous version made this assumption that the compiler was only usable with React 19, but it's possible to use it with React 18 and a custom `runtimeModule`: https://gist.github.com/poteto/37c076bf112a07ba39d0e5f0645fec43

When using a custom `runtimeModule`, the plugin will not try to pre-optimize `react/compiler-runtime` dependency.

Reminder: Vite expect code outside of `node_modules` to be ESM, so you will need to update the gist with `import React from 'react'`.

### [`v4.3.0`](https://togithub.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react/CHANGELOG.md#430-2024-05-22)

[Compare Source](https://togithub.com/vitejs/vite-plugin-react/compare/v4.2.1...v4.3.0)

##### Fix support for React compiler

Don't set `retainLines: true` when the React compiler is used. This creates whitespace issues and the compiler is modifying the JSX too much to get correct line numbers after that. If you want to use the React compiler and get back correct line numbers for tools like [vite-plugin-react-click-to-component](https://togithub.com/ArnaudBarre/vite-plugin-react-click-to-component) to work, you should update your config to something like:

```ts
export default defineConfig(({ command }) => {
  const babelPlugins = [['babel-plugin-react-compiler', {}]]
  if (command === 'serve') {
    babelPlugins.push(['@&#8203;babel/plugin-transform-react-jsx-development', {}])
  }

  return {
    plugins: [react({ babel: { plugins: babelPlugins } })],
  }
})
```

##### Support HMR for class components

This is a long overdue and should fix some issues people had with HMR when migrating from CRA.

</details>

<details>
<summary>prettier/prettier (prettier)</summary>

### [`v3.3.2`](https://togithub.com/prettier/prettier/blob/HEAD/CHANGELOG.md#332)

[Compare Source](https://togithub.com/prettier/prettier/compare/3.3.1...3.3.2)

[diff](https://togithub.com/prettier/prettier/compare/3.3.1...3.3.2)

##### Fix handlebars path expressions starts with `@` ([#&#8203;16358](https://togithub.com/prettier/prettier/pull/16358) by [@&#8203;Princeyadav05](https://togithub.com/Princeyadav05))



```hbs
{{! Input }}
<div>{{@&#8203;x.y.z}}</div>

{{! Prettier 3.3.1 }}
<div>{{@&#8203;x}}</div>

{{! Prettier 3.3.2 }}
<div>{{@&#8203;x.y.z}}</div>
```

### [`v3.3.1`](https://togithub.com/prettier/prettier/blob/HEAD/CHANGELOG.md#331)

[Compare Source](https://togithub.com/prettier/prettier/compare/3.3.0...3.3.1)

[diff](https://togithub.com/prettier/prettier/compare/3.3.0...3.3.1)

##### Preserve empty lines in front matter ([#&#8203;16347](https://togithub.com/prettier/prettier/pull/16347) by [@&#8203;fisker](https://togithub.com/fisker))



```markdown
<!-- Input -->
---
foo:
  - bar1

  - bar2

  - bar3
---
Markdown

<!-- Prettier 3.3.0 -->

---
foo:
  - bar1
  - bar2
  - bar3
---

Markdown

<!-- Prettier 3.3.1 -->
---
foo:
  - bar1

  - bar2

  - bar3
---

Markdown
```

##### Preserve explicit language in front matter ([#&#8203;16348](https://togithub.com/prettier/prettier/pull/16348) by [@&#8203;fisker](https://togithub.com/fisker))



```markdown
<!-- Input -->
---yaml
title: Hello
slug: home
---

<!-- Prettier 3.3.0 -->
---
title: Hello
slug: home
---

<!-- Prettier 3.3.1 -->
---yaml
title: Hello
slug: home
---
```

##### Avoid line breaks in import attributes ([#&#8203;16349](https://togithub.com/prettier/prettier/pull/16349) by [@&#8203;fisker](https://togithub.com/fisker))



```jsx
// Input
import something from "./some-very-very-very-very-very-very-very-very-long-path.json" with { type: "json" };

// Prettier 3.3.0
import something from "./some-very-very-very-very-very-very-very-very-long-path.json" with { type:
  "json" };

// Prettier 3.3.1
import something from "./some-very-very-very-very-very-very-very-very-long-path.json" with { type: "json" };
```

### [`v3.3.0`](https://togithub.com/prettier/prettier/blob/HEAD/CHANGELOG.md#330)

[Compare Source](https://togithub.com/prettier/prettier/compare/3.2.5...3.3.0)

[diff](https://togithub.com/prettier/prettier/compare/3.2.5...3.3.0)

🔗 [Release Notes](https://prettier.io/blog/2024/06/01/3.3.0.html)

</details>

<details>
<summary>Microsoft/TypeScript (typescript)</summary>

### [`v5.5.2`](https://togithub.com/Microsoft/TypeScript/compare/v5.4.5...ce2e60e4ea15a65992e54a9e8877d16be9d42abb)

[Compare Source](https://togithub.com/Microsoft/TypeScript/compare/v5.4.5...v5.5.2)

</details>

<details>
<summary>vitejs/vite (vite)</summary>

### [`v5.3.1`](https://togithub.com/vitejs/vite/blob/HEAD/packages/vite/CHANGELOG.md#small531-2024-06-14-small)

-   fix(build): handle preload treeshaking for braces ([#&#8203;17479](https://togithub.com/vitejs/vite/issues/17479)) ([d355568](https://togithub.com/vitejs/vite/commit/d355568)), closes [#&#8203;17479](https://togithub.com/vitejs/vite/issues/17479)
-   fix(build): handle preload treeshaking for commas ([#&#8203;17472](https://togithub.com/vitejs/vite/issues/17472)) ([3e27071](https://togithub.com/vitejs/vite/commit/3e27071)), closes [#&#8203;17472](https://togithub.com/vitejs/vite/issues/17472)
-   fix(build): preload treeshaking ignore equal ([#&#8203;17480](https://togithub.com/vitejs/vite/issues/17480)) ([6ced135](https://togithub.com/vitejs/vite/commit/6ced135)), closes [#&#8203;17480](https://togithub.com/vitejs/vite/issues/17480)
-   chore: consolidate changelog for 5.3 ([#&#8203;17476](https://togithub.com/vitejs/vite/issues/17476)) ([1f09344](https://togithub.com/vitejs/vite/commit/1f09344)), closes [#&#8203;17476](https://togithub.com/vitejs/vite/issues/17476)

### [`v5.3.0`](https://togithub.com/vitejs/vite/blob/HEAD/packages/vite/CHANGELOG.md#530-2024-06-13)

-   fix: typo in client log ([#&#8203;17363](https://togithub.com/vitejs/vite/issues/17363)) ([68aa9f8](https://togithub.com/vitejs/vite/commit/68aa9f8)), closes [#&#8203;17363](https://togithub.com/vitejs/vite/issues/17363)
-   fix(ssrTransform): handle arbitrary module namespace identifiers ([#&#8203;17446](https://togithub.com/vitejs/vite/issues/17446)) ([0a76652](https://togithub.com/vitejs/vite/commit/0a76652)), closes [#&#8203;17446](https://togithub.com/vitejs/vite/issues/17446)
-   test: disable isolate for unit test ([#&#8203;17448](https://togithub.com/vitejs/vite/issues/17448)) ([f16fae5](https://togithub.com/vitejs/vite/commit/f16fae5)), closes [#&#8203;17448](https://togithub.com/vitejs/vite/issues/17448)
-   feat: asset type add bmp ([#&#8203;17439](https://togithub.com/vitejs/vite/issues/17439)) ([ec287f8](https://togithub.com/vitejs/vite/commit/ec287f8)), closes [#&#8203;17439](https://togithub.com/vitejs/vite/issues/17439)

### [`v5.2.13`](https://togithub.com/vitejs/vite/releases/tag/v5.2.13)

[Compare Source](https://togithub.com/vitejs/vite/compare/v5.2.12...v5.2.13)

Please refer to [CHANGELOG.md](https://togithub.com/vitejs/vite/blob/v5.2.13/packages/vite/CHANGELOG.md) for details.

### [`v5.2.12`](https://togithub.com/vitejs/vite/blob/HEAD/packages/vite/CHANGELOG.md#small5212-2024-05-28-small)

[Compare Source](https://togithub.com/vitejs/vite/compare/v5.2.11...v5.2.12)

-   chore: move to eslint flat config ([#&#8203;16743](https://togithub.com/vitejs/vite/issues/16743)) ([8f16765](https://togithub.com/vitejs/vite/commit/8f16765)), closes [#&#8203;16743](https://togithub.com/vitejs/vite/issues/16743)
-   chore(deps): remove unused deps ([#&#8203;17329](https://togithub.com/vitejs/vite/issues/17329)) ([5a45745](https://togithub.com/vitejs/vite/commit/5a45745)), closes [#&#8203;17329](https://togithub.com/vitejs/vite/issues/17329)
-   chore(deps): update all non-major dependencies ([#&#8203;16722](https://togithub.com/vitejs/vite/issues/16722)) ([b45922a](https://togithub.com/vitejs/vite/commit/b45922a)), closes [#&#8203;16722](https://togithub.com/vitejs/vite/issues/16722)
-   fix: mention `build.rollupOptions.output.manualChunks` instead of  `build.rollupOutput.manualChunks` ([89378c0](https://togithub.com/vitejs/vite/commit/89378c0)), closes [#&#8203;16721](https://togithub.com/vitejs/vite/issues/16721)
-   fix(build): make SystemJSWrapRE match lazy ([#&#8203;16633](https://togithub.com/vitejs/vite/issues/16633)) ([6583ad2](https://togithub.com/vitejs/vite/commit/6583ad2)), closes [#&#8203;16633](https://togithub.com/vitejs/vite/issues/16633)
-   fix(css): avoid generating empty JS files when JS files becomes empty but has CSS files imported ([#&#8203;1](https://togithub.com/vitejs/vite/issues/1) ([95fe5a7](https://togithub.com/vitejs/vite/commit/95fe5a7)), closes [#&#8203;16078](https://togithub.com/vitejs/vite/issues/16078)
-   fix(css): handle lightningcss compiled css in Deno ([#&#8203;17301](https://togithub.com/vitejs/vite/issues/17301)) ([8e4e932](https://togithub.com/vitejs/vite/commit/8e4e932)), closes [#&#8203;17301](https://togithub.com/vitejs/vite/issues/17301)
-   fix(css): only use files the current bundle contains ([#&#8203;16684](https://togithub.com/vitejs/vite/issues/16684)) ([15a6ebb](https://togithub.com/vitejs/vite/commit/15a6ebb)), closes [#&#8203;16684](https://togithub.com/vitejs/vite/issues/16684)
-   fix(css): page reload was not happening with .css?raw ([#&#8203;16455](https://togithub.com/vitejs/vite/issues/16455)) ([8041846](https://togithub.com/vitejs/vite/commit/8041846)), closes [#&#8203;16455](https://togithub.com/vitejs/vite/issues/16455)
-   fix(deps): update all non-major dependencies ([#&#8203;16603](https://togithub.com/vitejs/vite/issues/16603)) ([6711553](https://togithub.com/vitejs/vite/commit/6711553)), closes [#&#8203;16603](https://togithub.com/vitejs/vite/issues/16603)
-   fix(deps): update all non-major dependencies ([#&#8203;16660](https://togithub.com/vitejs/vite/issues/16660)) ([bf2f014](https://togithub.com/vitejs/vite/commit/bf2f014)), closes [#&#8203;16660](https://togithub.com/vitejs/vite/issues/16660)
-   fix(deps): update all non-major dependencies ([#&#8203;17321](https://togithub.com/vitejs/vite/issues/17321)) ([4a89766](https://togithub.com/vitejs/vite/commit/4a89766)), closes [#&#8203;17321](https://togithub.com/vitejs/vite/issues/17321)
-   fix(error-logging): rollup errors weren't displaying id and codeframe ([#&#8203;16540](https://togithub.com/vitejs/vite/issues/16540)) ([22dc196](https://togithub.com/vitejs/vite/commit/22dc196)), closes [#&#8203;16540](https://togithub.com/vitejs/vite/issues/16540)
-   fix(hmr): normalize the path info ([#&#8203;14255](https://togithub.com/vitejs/vite/issues/14255)) ([6a085d0](https://togithub.com/vitejs/vite/commit/6a085d0)), closes [#&#8203;14255](https://togithub.com/vitejs/vite/issues/14255)
-   fix(hmr): trigger page reload when calling invalidate on root module ([#&#8203;16636](https://togithub.com/vitejs/vite/issues/16636)) ([2b61cc3](https://togithub.com/vitejs/vite/commit/2b61cc3)), closes [#&#8203;16636](https://togithub.com/vitejs/vite/issues/16636)
-   fix(logger): truncate log over 5000 characters long ([#&#8203;16581](https://togithub.com/vitejs/vite/issues/16581)) ([b0b839a](https://togithub.com/vitejs/vite/commit/b0b839a)), closes [#&#8203;16581](https://togithub.com/vitejs/vite/issues/16581)
-   fix(optimizer): log dependencies added by plugins ([#&#8203;16729](https://togithub.com/vitejs/vite/issues/16729)) ([f0fb987](https://togithub.com/vitejs/vite/commit/f0fb987)), closes [#&#8203;16729](https://togithub.com/vitejs/vite/issues/16729)
-   fix(sourcemap): improve sourcemap compatibility for vue2 ([#&#8203;16594](https://togithub.com/vitejs/vite/issues/16594)) ([913c040](https://togithub.com/vitejs/vite/commit/913c040)), closes [#&#8203;16594](https://togithub.com/vitejs/vite/issues/16594)
-   docs: correct proxy shorthand example ([#&#8203;15938](https://togithub.com/vitejs/vite/issues/15938)) ([abf766e](https://togithub.com/vitejs/vite/commit/abf766e)), closes [#&#8203;15938](https://togithub.com/vitejs/vite/issues/15938)
-   docs: deprecate server.hot ([#&#8203;16741](https://togithub.com/vitejs/vite/issues/16741)) ([e7d38ab](https://togithub.com/vitejs/vite/commit/e7d38ab)), closes [#&#8203;16741](https://togithub.com/vitejs/vite/issues/16741)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 4am on Monday" in timezone Europe/Berlin, 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.

👻 **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/mheob/ef-calc).
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.

4 participants