{"name":"gatsby-script","version":"2.17.0-react19.0","keywords":["gatsby"],"author":{"name":"Ty Hopp","email":"ty.hopp@gatsbyjs.com"},"license":"MIT","_id":"gatsby-script@2.17.0-react19.0","maintainers":[{"name":"pieh","email":"misiek.piechowiak@gmail.com"},{"name":"kathmbeck","email":"katherine.beck@netlify.com"},{"name":"serhalp-netlify","email":"philippe.serhal@netlify.com"},{"name":"mlgualtieri-gatsby","email":"mike.gualtieri@netlify.com"},{"name":"fk","email":"sechskilo@gmail.com"},{"name":"tylerbarnes","email":"tyler@known.design"},{"name":"daniellewgatsby","email":"daniel.lew@gatsbyjs.com"}],"homepage":"https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-script#readme","bugs":{"url":"https://github.com/gatsbyjs/gatsby/issues"},"dist":{"shasum":"49f690348bf9e317b7c2b74e33e4b93d576dca9c","tarball":"http://registry-npm.ywwl.com/gatsby-script/download/gatsby-script-2.17.0-react19.0.tgz","fileCount":12,"integrity":"sha512-FbPJQwG7rAB164xAqzexLWhrP+Hzz4xkDp6+hmGuUUk2kBeYxfGvhMAcnSQ7b769m/OlEHZ52zIfowBZ7webtA==","signatures":[{"sig":"MEQCIAwmdPbj8gZ/8n67a0SRRKn8+fuKewpRLvpNK+1T5j3rAiBoqQWSaapqdfjx2r2Xrhu9IJkCcpl/GpIS1iKlBoBn0A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":52753,"size":14904,"noattachment":false,"key":"/gatsby-script/-/gatsby-script-2.17.0-react19.0.tgz"},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.modern.mjs","source":"src/index.ts","engines":{"node":">=18.0.0"},"gitHead":"820c2e8cc6695c740c2f52d172b88bbd9e01a1b8","scripts":{"build":"microbundle -f cjs,modern --jsx React.createElement && tsc --emitDeclarationOnly --declaration --declarationDir dist","clean":"del-cli dist/*","watch":"microbundle watch -f cjs,modern --jsx React.createElement --no-compress","prepare":"cross-env NODE_ENV=production npm run clean && npm run build","postbuild":"prepend-directive --files=dist/index.js,dist/index.modern.mjs --directive=\"use client\""},"_npmUser":{"name":"serhalp-netlify","email":"philippe.serhal@netlify.com"},"deprecated":"This React 19 prerelease version may be selected unexpectedly by npm when resolving version ranges. Please use the latest stable version, or use @next to install React 19 compatible prerelease version.","repository":{"url":"git+https://github.com/gatsbyjs/gatsby.git","type":"git","directory":"packages/gatsby-script"},"_npmVersion":"lerna/3.22.1/node@v22.19.0+arm64 (darwin)","description":"An enhanced script component for Gatsby sites with support for various loading strategies","directories":{},"sideEffects":false,"_nodeVersion":"22.19.0","_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"del-cli":"^5.1.0","cross-env":"^7.0.3","typescript":"^5.1.6","microbundle":"^0.15.1","prepend-directive":"^1.1.0","@gatsbyjs/reach-router":"^2.0.1","@testing-library/react":"^11.2.7"},"peerDependencies":{"react":"^18.0.0 || ^19.0.0 || ^0.0.0","react-dom":"^18.0.0 || ^19.0.0 || ^0.0.0","@gatsbyjs/reach-router":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/gatsby-script_2.17.0-react19.0_1764019192957_0.29862782061161597","host":"s3://npm-registry-packages-npm-production"},"readme":"# gatsby-script\n\nAn enhanced script component for Gatsby sites with support for various loading strategies.\n\nYou do not need to install this package directly, it is available in the main Gatsby package since `gatsby@4.15.0`.\n\nSee the [documentation](https://gatsby.dev/gatsby-script) for full details.\n\n## Usage\n\n```tsx\nimport * as React from \"react\"\nimport { Script, ScriptStrategy } from \"gatsby\" // Re-exported from core\n\nconst GTM = `G-XXXXXXXXXX` // Example Google Analytics 4 identifier\n\n// Example script sources for illustration\nconst scripts = {\n  three: \"https://unpkg.com/three@0.139.1/build/three.js\",\n  marked: \"https://cdn.jsdelivr.net/npm/marked/marked.min.js\",\n  gtag: `https://www.googletagmanager.com/gtag/js?id=${GTM}`,\n}\n\n// Strategy prop is optional, defaults to post-hydrate\nfunction IndexPage() {\n  return (\n    <main>\n      <h1>Script component example</h1>\n      <Script src={scripts.three} strategy={ScriptStrategy.postHydrate} />\n      <Script src={scripts.marked} strategy={ScriptStrategy.idle} />\n      <Script\n        src={scripts.gtag}\n        strategy={ScriptStrategy.offMainThread}\n        forward={[`gtag`]}\n      />\n      <Script id=\"gtag-config\" strategy={ScriptStrategy.offMainThread}>\n        {`\n          // Example configuration of Google Analytics for use in Partytown\n          window.dataLayer = window.dataLayer || [];\n          function gtag(){dataLayer.push(arguments)};\n          gtag('js', new Date());\n          gtag('config', ${GTM}, { send_page_view: false })\n        `}\n      </Script>\n      <Script\n        id=\"my-unique-id\"\n        dangerouslySetInnerHTML={{ __html: `alert('Hello world')` }}\n      />\n      <Script id=\"my-unique-id-2\">{`alert('Hello world')`}</Script>\n    </main>\n  )\n}\n\nexport default IndexPage\n```\n","publish_time":1764019193143,"_cnpm_publish_time":1764019193143,"dist-tags":{"alpha-9689ff":"1.8.0-alpha-9689ff.25","alpha-a5-peer":"1.8.0-alpha-a5-peer.53","alpha-gatsby-script":"1.0.0-alpha-gatsby-script.20251","alpha-gatsby-script-proxy-2":"1.0.0-alpha-gatsby-script-proxy-2.20252","alpha-transformer-json":"2.0.0-alpha-transformer-json.20740","alpha-v5":"2.0.0-alpha-v5.d20221012t101120.57","drupal-proxyurl":"2.0.0-alpha-drupal-proxyurl.14","drupal-self-reference":"1.3.0-alpha-drupal-self-reference.18","latest":"2.16.0","latest-v4":"1.10.0","next":"2.17.0-next.0","preview-gh-api":"1.8.0-alpha-preview-gh-api.26","react19":"2.17.0-react19.0","wp-image-cdn-auth":"1.1.0-alpha-wp-image-cdn-auth.20253"}}