{"_id":"@brettm12345/gatsby-plugin-exact-client-paths","_rev":"1-4df8d637605abf58a6e878caae127a6b","name":"@brettm12345/gatsby-plugin-exact-client-paths","dist-tags":{"latest":"0.4.2"},"versions":{"0.4.2":{"name":"@brettm12345/gatsby-plugin-exact-client-paths","version":"0.4.2","description":"Gatsby plugin for client rendering exact page routes.","main":"index.js","scripts":{"build":"cross-env NODE_ENV=production rollup -c","format":"prettier --write 'src/**/*.js' 'rollup.config.js' 'README.md'","prebuild":"rimraf dist","prepublish":"yarn build","release":"standard-version","test":"jest"},"public":true,"homepage":"https://github.com/brettm12345/gatsby-plugin-exact-client-paths","repository":{"type":"git","url":"https://github.com/brettm12345/gatsby-plugin-exact-client-paths.git"},"keywords":["gatsby","gatsby-plugin","client","rendered","path","exact","single"],"author":{"name":"Brett Mandler","email":"brettmandler@gmail.com"},"license":"MIT","dependencies":{},"devDependencies":{"@babel/core":"^7.4.4","@babel/plugin-proposal-throw-expressions":"^7.2.0","@babel/preset-env":"^7.4.4","@babel/preset-react":"^7.0.0","@commitlint/cli":"^8.0.0","@commitlint/config-conventional":"^8.0.0","babel-eslint":"^10.0.1","babel-jest":"^24.8.0","cross-env":"^5.2.0","eslint":"^6.0.1","eslint-plugin-react":"^7.12.4","eslint-plugin-react-hooks":"^1.6.0","husky":"^3.0.0","jest":"^24.8.0","prettier":"^1.18.2","rimraf":"^2.6.3","rollup":"^1.11.3","rollup-plugin-babel":"^4.3.2","rollup-plugin-terser":"^5.1.1","standard-version":"^6.0.1"},"peerDependencies":{"@reach/router":"1.2.1","gatsby":">=2.3.0","react":">=16.8.0"},"licenseText":"The MIT License (MIT)\n\nCopyright (c) 2019 Anthony Yarbrough\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE","_id":"@brettm12345/gatsby-plugin-exact-client-paths@0.4.2","dist":{"shasum":"0f6353c6e2002292225e8aa6b2fd898795ccdb78","integrity":"sha512-j8cftVTDwJGCKROCgzlBLVm73jNlZq+7l/s4A0/FIZIQDhPqRbtqluA7uF9UEk7Asa+LDZYWi6X8oNqpWqOx2w==","tarball":"https://registry.npmjs.org/@brettm12345/gatsby-plugin-exact-client-paths/-/gatsby-plugin-exact-client-paths-0.4.2.tgz","fileCount":16,"unpackedSize":12696,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdejSMCRA9TVsSAnZWagAAvosP/jhb6kPPt3cB0a4bL2YB\n39U28OipL6JyvK/DrVkSZ42GfaxdI8rvlyH1lcbWHbLQ6W5AGJCmLowCl/se\npmLYvqDGoXe3p36Doi+7/qkqhUE9PFNuviwO00xkaGqKn5djtXSFRelw/tSn\n2NXEox4aFlDvTVDgEO2wUD0Ep9J4/vaUkRsxqG4pugrZP/fothEVTACTHt6I\nHsx9J2HGO0LjE561rC/ke92aEpBg8NYSrymrN1ObDi3o6c0PS8DAAMJSeWu9\nRaCe/0KU1Q4eod2frprctcSt3aVYav9mRR4c8w59PvjGGL38ud056EpTy3P0\nmTJdJlZcvQL598kJoInObc4nd025lA81y+hpGnNaKvxLSASc2mDilow8K3py\n038onN9SG1fMrp1Q6/ip2nCrNfzTqyKZ47TnmlpD8zuNIbkvOOwI3FPvAkYL\nhqKRBGGJDGCOAXO4jU4e2FbkHpDNwhSALN0YbmTO0RT8gWfV5cOQzGqvXrYB\nlEp2KiCj0npOVxlbsmm0XRIRBGwASu6z8cTswH8mspfEOxhv/P5VZEjRRPpk\ny3uI9MzBP0R9wS8r5iC7rySyStorts/4qRQByI1T9/F+QslcassJaXdhCeGm\nIDDRDp/QlEtGM9+cgW3P/yv0zxXMCXQ9vaOtB7HDoK2BWs4Hy3lPLz2LVGIf\ntEHM\r\n=rkIN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDnuQfobsr6YnDZhXtdvUvU9e0u4vQMIMrmZ5/bg3coyQIgSa6jbZV9+X6I4G0m6SeRYXST4/b8ryKlMIxaPGX7KgE="}]},"maintainers":[{"name":"brettm12345","email":"brettmandler@gmail.com"}],"_npmUser":{"name":"brettm12345","email":"brettmandler@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gatsby-plugin-exact-client-paths_0.4.2_1568289931338_0.3907033489804206"},"_hasShrinkwrap":false}},"time":{"created":"2019-09-12T12:05:31.115Z","0.4.2":"2019-09-12T12:05:31.436Z","modified":"2022-04-04T20:31:36.078Z"},"maintainers":[{"name":"brettm12345","email":"brettmandler@gmail.com"}],"description":"Gatsby plugin for client rendering exact page routes.","homepage":"https://github.com/brettm12345/gatsby-plugin-exact-client-paths","keywords":["gatsby","gatsby-plugin","client","rendered","path","exact","single"],"repository":{"type":"git","url":"https://github.com/brettm12345/gatsby-plugin-exact-client-paths.git"},"author":{"name":"Brett Mandler","email":"brettmandler@gmail.com"},"license":"MIT","readme":"<h1 align=\"center\">gatsby-plugin-exact-client-paths</h1>\n<p>\n  <img src=\"https://img.shields.io/badge/version-0.1.0-blue.svg?cacheSeconds=2592000\" />\n  <a href=\"https://github.com/asyarb/gatsby-plugin-exact-client-paths/blob/master/LICENSE\">\n    <img alt=\"License: MIT\" src=\"https://img.shields.io/badge/License-MIT-yellow.svg\" target=\"_blank\" />\n  </a>\n</p>\n\n- [Install](#Install)\n- [Usage](#Usage)\n  - [How is this different from `gatsby-plugin-create-client-paths`?](#How-is-this-different-from-gatsby-plugin-create-client-paths)\n- [Current Limitations](#Current-Limitations)\n- [Run tests](#Run-tests)\n- [📝 License](#%F0%9F%93%9D-License)\n\n> Gatsby plugin for client rendering exact page routes.\n\n## Install\n\n```sh\nyarn add gatsby-plugin-exact-client-paths\n```\n\n## Usage\n\n```js\n// gatsby-config.js\n\nmodule.exports = {\n  plugins: [\n    {\n      resolve: 'gatsby-plugin-exact-client-paths',\n      options: {\n        clientPaths: ['/preview', '/clientOnly'],\n      },\n    },\n  ],\n}\n```\n\n### How is this different from `gatsby-plugin-create-client-paths`?\n\nThis plugin attempts to address the inability to client-side render singular\nroutes in Gatsby, most particularly with top level routes such as `/preview`.\n\nWith `gatsby-plugin-create-client-paths`, you must create at least 1 route that\nis still processed via Gatsby's SSR pipeline that handles the client-side\nrouting for nested paths. This can be problematic when top level client-side\nroutes like `https://hostname.com/preview` are needed, and we don't want to\nimperatively define a `<Router>` component directly in our homepage index\ncomponent.\n\nThis plugin establishes a `<Router>` behind the scenes of your index page that\nwill normally display your SSR'd content _or_ a client rendered page if the\ncurrent path matches a path specified in the `clientPaths` plugin options.\n\n## Current Limitations\n\n- Client rendered paths & component trees that call Gatsby's `useStaticQuery`\n  hook will crash.\n\n## Run tests\n\n```sh\nyarn test\n```\n\n## 📝 License\n\nThis project is\n[MIT](https://github.com/asyarb/gatsby-plugin-exact-client-paths/blob/master/LICENSE)\nlicensed.\n","readmeFilename":"README.md"}