feat: update to latest partytown version (#7629)
This commit is contained in:
committed by
GitHub
parent
0f3fae6db8
commit
b5bb79c003
@@ -52,7 +52,7 @@ bun create qwik@latest
|
||||
|
||||
## Related
|
||||
|
||||
- [Partytown](https://partytown.builder.io/): Relocate resource intensive third-party scripts off of the main thread and into a web worker 🎉.
|
||||
- [Partytown](https://partytown.qwik.dev/): Relocate resource intensive third-party scripts off of the main thread and into a web worker 🎉.
|
||||
- [Mitosis](https://github.com/BuilderIO/mitosis): Write components once, run everywhere. Compiles to Vue, React, Solid, Angular, Svelte, and more.
|
||||
- [Builder](https://github.com/BuilderIO/builder): Drag and drop page builder and CMS for React, Vue, Angular, and more.
|
||||
|
||||
|
||||
@@ -98,7 +98,6 @@
|
||||
"esbuild-plugin-raw": "^0.1.8"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@builder.io/partytown": "0.10.2",
|
||||
"@builder.io/qwik": "workspace:^",
|
||||
"@builder.io/qwik-city": "workspace:^",
|
||||
"@changesets/cli": "2.28.1",
|
||||
@@ -114,6 +113,7 @@
|
||||
"@node-rs/helper": "1.6.0",
|
||||
"@octokit/action": "6.1.0",
|
||||
"@playwright/test": "1.50.1",
|
||||
"@qwik.dev/partytown": "0.11.1",
|
||||
"@types/brotli": "1.3.4",
|
||||
"@types/bun": "1.1.6",
|
||||
"@types/cross-spawn": "6.0.6",
|
||||
|
||||
@@ -35,6 +35,6 @@ console.log(result);
|
||||
## Related
|
||||
|
||||
- [Qwik](https://qwik.dev/)
|
||||
- [Partytown](https://partytown.builder.io)
|
||||
- [Partytown](https://partytown.qwik.dev)
|
||||
- [Mitosis](https://github.com/BuilderIO/mitosis)
|
||||
- [Builder.io](https://github.com/BuilderIO/)
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
"devDependencies": {
|
||||
"@algolia/autocomplete-core": "1.7.4",
|
||||
"@algolia/client-search": "4.14.3",
|
||||
"@builder.io/partytown": "0.10.2",
|
||||
"@builder.io/qwik": "workspace:^",
|
||||
"@builder.io/qwik-city": "workspace:^",
|
||||
"@builder.io/qwik-labs": "workspace:^",
|
||||
@@ -19,6 +18,7 @@
|
||||
"@mui/system": "5.16.4",
|
||||
"@mui/x-data-grid": "6.20.4",
|
||||
"@qwik-ui/headless": "0.5.0",
|
||||
"@qwik.dev/partytown": "0.11.1",
|
||||
"@shikijs/colorized-brackets": "3.1.0",
|
||||
"@shikijs/rehype": "3.1.0",
|
||||
"@shikijs/transformers": "3.1.0",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { partytownSnippet } from '@builder.io/partytown/integration';
|
||||
import { partytownSnippet } from '@qwik.dev/partytown/integration';
|
||||
|
||||
export const Vendor = () => {
|
||||
return (
|
||||
|
||||
@@ -20,7 +20,7 @@ The CLI consist of these four examples, that will be expanded in the near future
|
||||
|
||||
1. `starter`: A basic hello world.
|
||||
2. `starter-builder`: A basic hello world integrated with Builder's [Qwik API](https://www.builder.io/c/docs/qwik-api).
|
||||
3. `starter-partytown`: A basic hello world showing how expensive tasks can be run on web-worker with [Partytown](https://github.com/BuilderIO/partytown)
|
||||
3. `starter-partytown`: A basic hello world showing how expensive tasks can be run on web-worker with [Partytown](https://github.com/QwikDev/partytown)
|
||||
4. `todo`: A classic [TodoMVC](https://todomvc.com/) application.
|
||||
|
||||
## Basic Starter
|
||||
|
||||
@@ -150,7 +150,7 @@ export const head: DocumentHead = ({ head }) => {
|
||||
|
||||
This example integrates [Google Structured Data](https://developers.google.com/search/docs/appearance/structured-data/intro-structured-data)
|
||||
which helps by providing explicit clues about the meaning of a page to Google.
|
||||
If you want to embed custom JavaScript code, it would be ideal to do it lazily with [Partytown](https://partytown.builder.io/).
|
||||
If you want to embed custom JavaScript code, it would be ideal to do it lazily with [Partytown](https://partytown.qwik.dev/).
|
||||
Sometimes, however, you are forced to load them immediately. The following example illustrates this.
|
||||
|
||||
```tsx {8} /head/ title="src/routes/about/index.tsx"
|
||||
|
||||
@@ -88,4 +88,4 @@ This table shows which file (`index.tsx` vs `layout.tsx`) the respective feature
|
||||
|
||||
## Partytown
|
||||
|
||||
Qwik City also comes pre-integrated with [Partytown](https://partytown.builder.io) allowing you to execute your third-party code off the main thread.
|
||||
Qwik City also comes pre-integrated with [Partytown](https://partytown.qwik.dev) allowing you to execute your third-party code off the main thread.
|
||||
|
||||
@@ -23,7 +23,7 @@ import PackageManagerTabs from '~/components/package-manager-tabs/index.tsx';
|
||||
Third party scripts slow down your initial page load substantially by blocking the main thread.
|
||||
|
||||
Partytown is a tool that allows you to defer third party scripts like Google Analytics, Facebook Pixel, etc off the main thread by using a web worker.
|
||||
For more information about this tool visit the [Partytown docs](https://partytown.builder.io/).
|
||||
For more information about this tool visit the [Partytown docs](https://partytown.qwik.dev/).
|
||||
|
||||
## Usage
|
||||
|
||||
@@ -91,4 +91,4 @@ export default component$(() => {
|
||||
|
||||
## Advanced
|
||||
|
||||
To further configure Partytown with more options, please visit the [Partytown Documentation](https://partytown.builder.io/configuration)
|
||||
To further configure Partytown with more options, please visit the [Partytown Documentation](https://partytown.qwik.dev/configuration)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { partytownVite } from '@builder.io/partytown/utils';
|
||||
import { partytownVite } from '@qwik.dev/partytown/utils';
|
||||
import { qwikCity } from '@builder.io/qwik-city/vite';
|
||||
import { qwikInsights } from '@builder.io/qwik-labs/vite';
|
||||
import { qwikReact } from '@builder.io/qwik-react/vite';
|
||||
|
||||
@@ -55,6 +55,6 @@ npm run build.server
|
||||
- [@QwikDev](https://twitter.com/QwikDev)
|
||||
- [Discord](https://qwik.dev/chat)
|
||||
- [Vite](https://vitejs.dev/)
|
||||
- [Partytown](https://partytown.builder.io/)
|
||||
- [Partytown](https://partytown.qwik.dev/)
|
||||
- [Mitosis](https://github.com/BuilderIO/mitosis)
|
||||
- [Builder.io](https://www.builder.io/)
|
||||
|
||||
@@ -10,6 +10,6 @@ The meta-framework for [Qwik](https://qwik.dev/).
|
||||
## Related
|
||||
|
||||
- [Qwik](https://qwik.dev/): An open-source framework designed for best possible time to interactive, by focusing on resumability of server-side-rendering of HTML, and fine-grained lazy-loading of code.
|
||||
- [Partytown](https://partytown.builder.io/): Relocate resource intensive third-party scripts off of the main thread and into a web worker 🎉.
|
||||
- [Partytown](https://partytown.qwik.dev/): Relocate resource intensive third-party scripts off of the main thread and into a web worker 🎉.
|
||||
- [Mitosis](https://github.com/BuilderIO/mitosis): Write components once, run everywhere. Compiles to Vue, React, Solid, Angular, Svelte, and more.
|
||||
- [Builder](https://github.com/BuilderIO/builder): Drag and drop page builder and CMS for React, Vue, Angular, and more.
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
- [Qwik on GitHub](https://github.com/QwikDev/qwik)
|
||||
- [@QwikDev](https://twitter.com/QwikDev)
|
||||
- [Vite](https://vitejs.dev/)
|
||||
- [Partytown](https://partytown.builder.io/)
|
||||
- [Partytown](https://partytown.qwik.dev/)
|
||||
- [Mitosis](https://github.com/BuilderIO/mitosis)
|
||||
- [Builder.io](https://www.builder.io/)
|
||||
|
||||
|
||||
@@ -55,6 +55,6 @@ npm run build.server
|
||||
- [@QwikDev](https://twitter.com/QwikDev)
|
||||
- [Discord](https://qwik.dev/chat)
|
||||
- [Vite](https://vitejs.dev/)
|
||||
- [Partytown](https://partytown.builder.io/)
|
||||
- [Partytown](https://partytown.qwik.dev/)
|
||||
- [Mitosis](https://github.com/BuilderIO/mitosis)
|
||||
- [Builder.io](https://www.builder.io/)
|
||||
|
||||
34
pnpm-lock.yaml
generated
34
pnpm-lock.yaml
generated
@@ -21,9 +21,6 @@ importers:
|
||||
specifier: ^0.1.8
|
||||
version: 0.1.8(esbuild@0.25.4)
|
||||
devDependencies:
|
||||
'@builder.io/partytown':
|
||||
specifier: 0.10.2
|
||||
version: 0.10.2
|
||||
'@builder.io/qwik':
|
||||
specifier: workspace:^
|
||||
version: link:packages/qwik
|
||||
@@ -69,6 +66,9 @@ importers:
|
||||
'@playwright/test':
|
||||
specifier: 1.50.1
|
||||
version: 1.50.1
|
||||
'@qwik.dev/partytown':
|
||||
specifier: 0.11.1
|
||||
version: 0.11.1
|
||||
'@types/brotli':
|
||||
specifier: 1.3.4
|
||||
version: 1.3.4
|
||||
@@ -275,9 +275,6 @@ importers:
|
||||
'@algolia/client-search':
|
||||
specifier: 4.14.3
|
||||
version: 4.14.3
|
||||
'@builder.io/partytown':
|
||||
specifier: 0.10.2
|
||||
version: 0.10.2
|
||||
'@builder.io/qwik':
|
||||
specifier: workspace:^
|
||||
version: link:../qwik
|
||||
@@ -311,6 +308,9 @@ importers:
|
||||
'@qwik-ui/headless':
|
||||
specifier: 0.5.0
|
||||
version: 0.5.0(@builder.io/qwik@packages+qwik)
|
||||
'@qwik.dev/partytown':
|
||||
specifier: 0.11.1
|
||||
version: 0.11.1
|
||||
'@shikijs/colorized-brackets':
|
||||
specifier: 3.1.0
|
||||
version: 3.1.0
|
||||
@@ -981,11 +981,6 @@ packages:
|
||||
'@bugsnag/safe-json-stringify@6.0.0':
|
||||
resolution: {integrity: sha512-htzFO1Zc57S8kgdRK9mLcPVTW1BY2ijfH7Dk2CeZmspTWKdKqSo1iwmqrq2WtRjFlo8aRZYgLX0wFrDXF/9DLA==}
|
||||
|
||||
'@builder.io/partytown@0.10.2':
|
||||
resolution: {integrity: sha512-A9U+4PREWcS+CCYzKGIPovtGB/PBgnH/8oQyCE6Nr9drDJk6cMPpLQIEajpGPmG9tYF7N3FkRvhXm/AS9+0iKg==}
|
||||
engines: {node: '>=18.0.0'}
|
||||
hasBin: true
|
||||
|
||||
'@builder.io/vite-plugin-macro@0.0.7':
|
||||
resolution: {integrity: sha512-tDdYnRtkxtZ3KRZMdUAetwEXPYQLQWIMtvbFY9klVKQII1P3IooAobByqNiHPy8W0EcLe8ZDVq2cK8z8RNtiHQ==}
|
||||
engines: {node: '>=16.8.0 <18.0.0 || >=18.11', npm: please-use-pnpm, pnpm: '>=8.0.0', yarn: please-use-pnpm}
|
||||
@@ -3186,6 +3181,11 @@ packages:
|
||||
peerDependencies:
|
||||
'@builder.io/qwik': ^1.5.5
|
||||
|
||||
'@qwik.dev/partytown@0.11.1':
|
||||
resolution: {integrity: sha512-sOjcsBsl6T+SVdLOfEYlOBssPDL5aVScA2TjUalsxvf55fMHhUaLl16JgrNi8iouhCA1hAezp74i6y8Sd9wOWw==}
|
||||
engines: {node: '>=18.0.0'}
|
||||
hasBin: true
|
||||
|
||||
'@rollup/pluginutils@5.1.4':
|
||||
resolution: {integrity: sha512-USm05zrsFxYLPdWWq+K3STlWiT/3ELn3RcV5hJMghpeAIhxfsUIg6mt12CBJBInWMV4VneoV7SfGv8xIwo2qNQ==}
|
||||
engines: {node: '>=14.0.0'}
|
||||
@@ -5190,6 +5190,10 @@ packages:
|
||||
resolution: {integrity: sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg==}
|
||||
engines: {node: '>=12'}
|
||||
|
||||
dotenv@16.5.0:
|
||||
resolution: {integrity: sha512-m/C+AwOAr9/W1UOIZUo232ejMNnJAJtYQjUbHoNTBNTJSvqzzDh7vnrei3o3r3m9blf6ZoDkvcw0VmozNRFJxg==}
|
||||
engines: {node: '>=12'}
|
||||
|
||||
drizzle-kit@0.28.1:
|
||||
resolution: {integrity: sha512-JimOV+ystXTWMgZkLHYHf2w3oS28hxiH1FR0dkmJLc7GHzdGJoJAQtQS5DRppnabsRZwE2U1F6CuezVBgmsBBQ==}
|
||||
hasBin: true
|
||||
@@ -10524,8 +10528,6 @@ snapshots:
|
||||
|
||||
'@bugsnag/safe-json-stringify@6.0.0': {}
|
||||
|
||||
'@builder.io/partytown@0.10.2': {}
|
||||
|
||||
'@builder.io/vite-plugin-macro@0.0.7(@types/node@20.14.11)(lightningcss@1.30.1)(rollup@4.39.0)(terser@5.31.3)':
|
||||
dependencies:
|
||||
'@rollup/pluginutils': 5.1.4(rollup@4.39.0)
|
||||
@@ -12546,6 +12548,10 @@ snapshots:
|
||||
body-scroll-lock-upgrade: 1.1.0
|
||||
focus-trap: 7.5.4
|
||||
|
||||
'@qwik.dev/partytown@0.11.1':
|
||||
dependencies:
|
||||
dotenv: 16.5.0
|
||||
|
||||
'@rollup/pluginutils@5.1.4(rollup@4.39.0)':
|
||||
dependencies:
|
||||
'@types/estree': 1.0.5
|
||||
@@ -14772,6 +14778,8 @@ snapshots:
|
||||
|
||||
dotenv@16.4.5: {}
|
||||
|
||||
dotenv@16.5.0: {}
|
||||
|
||||
drizzle-kit@0.28.1:
|
||||
dependencies:
|
||||
'@drizzle-team/brocli': 0.10.2
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
- [Qwik on GitHub](https://github.com/QwikDev/qwik)
|
||||
- [@QwikDev](https://twitter.com/QwikDev)
|
||||
- [Vite](https://vitejs.dev/)
|
||||
- [Partytown](https://partytown.builder.io/)
|
||||
- [Partytown](https://partytown.qwik.dev/)
|
||||
- [Mitosis](https://github.com/BuilderIO/mitosis)
|
||||
- [Builder.io](https://www.builder.io/)
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"description": "Blank Qwik starter app with Partytown.",
|
||||
"dependencies": {
|
||||
"@builder.io/partytown": "latest"
|
||||
"@qwik.dev/partytown": "latest"
|
||||
},
|
||||
"type": "module",
|
||||
"__qwik__": {
|
||||
|
||||
@@ -19,12 +19,12 @@ export const App = component$(() => {
|
||||
</p>
|
||||
<p class="congrats">
|
||||
Congratulations <a href="https://github.com/QwikDev/qwik">Qwik</a> with{" "}
|
||||
<a href="https://partytown.builder.io/">Partytown</a> is working!
|
||||
<a href="https://partytown.qwik.dev/">Partytown</a> is working!
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Expensive script running in{" "}
|
||||
<a href="https://partytown.builder.io/">Partytown</a> is{" "}
|
||||
<a href="https://partytown.qwik.dev/">Partytown</a> is{" "}
|
||||
{state.running ? (
|
||||
<span
|
||||
id="state"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { App } from "./components/app/app";
|
||||
import { partytownSnippet } from "@builder.io/partytown/integration";
|
||||
import { partytownSnippet } from "@qwik.dev/partytown/integration";
|
||||
|
||||
import "./global.css";
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
"namedImports": [
|
||||
"partytownVite"
|
||||
],
|
||||
"importPath": "@builder.io/partytown/utils"
|
||||
"importPath": "@qwik.dev/partytown/utils"
|
||||
},
|
||||
{
|
||||
"namedImports": [
|
||||
@@ -23,7 +23,7 @@
|
||||
]
|
||||
},
|
||||
"docs": [
|
||||
"https://partytown.builder.io/",
|
||||
"https://partytown.qwik.dev/",
|
||||
"https://qwik.dev/integrations/partytown/"
|
||||
],
|
||||
"nextSteps": {
|
||||
@@ -31,11 +31,11 @@
|
||||
" Please add the <QwikPartytown/> component",
|
||||
" to your root.tsx file.",
|
||||
" Have a look at the docs for more info: ",
|
||||
" https://partytown.builder.io/configuration"
|
||||
" https://partytown.qwik.dev/configuration"
|
||||
]
|
||||
}
|
||||
},
|
||||
"devDependencies": {
|
||||
"@builder.io/partytown": "^0.8.1"
|
||||
"@qwik.dev/partytown": "^0.11.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { PartytownConfig } from "@builder.io/partytown/integration";
|
||||
import { partytownSnippet } from "@builder.io/partytown/integration";
|
||||
import type { PartytownConfig } from "@qwik.dev/partytown/integration";
|
||||
import { partytownSnippet } from "@qwik.dev/partytown/integration";
|
||||
|
||||
/**
|
||||
* Props for `<QwikPartytown/>`, which extends the Partytown Config.
|
||||
|
||||
Reference in New Issue
Block a user