Skip to content

Commit

Permalink
chore(deps): update dependency vite to v3 (master) (#1444)
Browse files Browse the repository at this point in the history
* chore(deps): update actions/checkout action to v3 (#1431)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency ioredis to v5.2.2 (#1450)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Replace cross-undici-fetch with @whatwg-node/fetch

* chore(deps): update dependency vite to v3

* Fix GraphiQL build

* Go

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Arda TANRIKULU <ardatanrikulu@gmail.com>
  • Loading branch information
renovate[bot] and ardatan committed Jul 25, 2022
1 parent 0aa653e commit 54a67e6
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 20 deletions.
4 changes: 2 additions & 2 deletions examples/sveltekit/__tests__/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ let toSkip = false;

describe('SvelteKit integration', () => {
beforeAll(async () => {
console.time('Setup SvelteKit tests');
// console.time('Setup SvelteKit tests');

const nodeVersion = execSync('node -v').toString();
if (nodeVersion.includes('v12')) {
Expand Down Expand Up @@ -49,7 +49,7 @@ describe('SvelteKit integration', () => {
}

// How long it took?
console.timeEnd('Setup SvelteKit tests');
// console.timeEnd('Setup SvelteKit tests');
}, timings.setup.total);

beforeEach(async () => {
Expand Down
2 changes: 1 addition & 1 deletion examples/sveltekit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"svelte-preprocess": "4.10.7",
"tslib": "2.4.0",
"typescript": "4.7.4",
"vite": "2.9.14"
"vite": "3.0.2"
},
"dependencies": {
"@envelop/graphql-jit": "4.4.0",
Expand Down
4 changes: 3 additions & 1 deletion packages/graphiql/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
<script type="module">
import * as yogaGraphiQL from './src/bundle.tsx'
const container = window.document.querySelector('#root')
yogaGraphiQL.renderYogaGraphiQL(container)
yogaGraphiQL.renderYogaGraphiQL(container, {
endpoint: '/graphql',
})
</script>
</body>
</html>
2 changes: 1 addition & 1 deletion packages/graphiql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"devDependencies": {
"@types/react": "17.0.39",
"@vitejs/plugin-react": "1.3.2",
"vite": "2.9.14"
"vite": "3.0.2"
},
"dependencies": {
"@graphql-tools/url-loader": "7.13.0",
Expand Down
4 changes: 4 additions & 0 deletions packages/graphiql/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ export default defineConfig({
'/graphql': 'http://localhost:4000',
},
},
define: {
'process.env.NODE_ENV': '"production"',
},
build: {
lib: {
entry: path.resolve(__dirname, 'src', 'bundle.tsx'),
Expand All @@ -20,6 +23,7 @@ export default defineConfig({
rollupOptions: {
output: {
/** prevent code-splitting */
inlineDynamicImports: false,
manualChunks: () => '_.js',
},
},
Expand Down
2 changes: 1 addition & 1 deletion packages/render-graphiql/scripts/yoga-bundle-string.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { fileURLToPath } from 'url'

const directoryName = path.dirname(fileURLToPath(import.meta.url))
const inputPath = path.resolve(directoryName, '..', '..', 'graphiql', 'dist')
const jsFile = path.resolve(inputPath, 'yoga-graphiql.es.js')
const jsFile = path.resolve(inputPath, 'yoga-graphiql.umd.js')
const cssFile = path.resolve(inputPath, 'style.css')

const outFile = path.resolve(directoryName, '..', 'src', 'graphiql.ts')
Expand Down
4 changes: 2 additions & 2 deletions packages/render-graphiql/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ export const renderGraphiQL = (opts?: GraphiQLOptions) => /* HTML */ `
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<script type="module">
<script>
${js}
renderYogaGraphiQL(
YogaGraphiQL.renderYogaGraphiQL(
window.document.querySelector('#root'),
${JSON.stringify(opts ?? {})},
)
Expand Down
24 changes: 12 additions & 12 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10191,7 +10191,7 @@ esbuild@0.14.47:
esbuild-windows-64 "0.14.47"
esbuild-windows-arm64 "0.14.47"

esbuild@0.14.49, esbuild@^0.14.21, esbuild@^0.14.25, esbuild@^0.14.27, esbuild@^0.14.48:
esbuild@0.14.49, esbuild@^0.14.21, esbuild@^0.14.25, esbuild@^0.14.47, esbuild@^0.14.48:
version "0.14.49"
resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.14.49.tgz#b82834760eba2ddc17b44f05cfcc0aaca2bae492"
integrity sha512-/TlVHhOaq7Yz8N1OJrjqM3Auzo5wjvHFLk+T8pIue+fhnhIMpfAzsG6PLVMbFveVxqD2WOp3QHei+52IMUNmCw==
Expand Down Expand Up @@ -17319,7 +17319,7 @@ postcss-values-parser@^2.0.1:
indexes-of "^1.0.1"
uniq "^1.0.1"

postcss@8.4.14, postcss@^8.1.6, postcss@^8.1.7, postcss@^8.1.8, postcss@^8.3.5, postcss@^8.4.13:
postcss@8.4.14, postcss@^8.1.6, postcss@^8.1.7, postcss@^8.1.8, postcss@^8.3.5, postcss@^8.4.14:
version "8.4.14"
resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.14.tgz#ee9274d5622b4858c1007a74d76e42e56fd21caf"
integrity sha512-E398TUmfAYFPBSdzgeieK2Y1+1cpdxJx8yXbK/m57nRhKSmk1GB2tO4lbLBtlkfPQTDKfe4Xqv1ASWPpayPEig==
Expand Down Expand Up @@ -18402,7 +18402,7 @@ resolve.exports@^1.1.0:
resolved "https://registry.yarnpkg.com/resolve.exports/-/resolve.exports-1.1.0.tgz#5ce842b94b05146c0e03076985d1d0e7e48c90c9"
integrity sha512-J1l+Zxxp4XK3LUDZ9m60LRJF/mAe4z6a4xyabPHk7pvK5t35dACV32iIjJDFeWZFfZlO29w6SZ67knR0tHzJtQ==

resolve@^1.0.0, resolve@^1.10.0, resolve@^1.12.0, resolve@^1.14.2, resolve@^1.19.0, resolve@^1.20.0, resolve@^1.22.0, resolve@^1.7.1:
resolve@^1.0.0, resolve@^1.10.0, resolve@^1.12.0, resolve@^1.14.2, resolve@^1.19.0, resolve@^1.20.0, resolve@^1.22.0, resolve@^1.22.1, resolve@^1.7.1:
version "1.22.1"
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.1.tgz#27cb2ebb53f91abb49470a928bba7558066ac177"
integrity sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==
Expand Down Expand Up @@ -18553,7 +18553,7 @@ rollup-pluginutils@^2.8.1, rollup-pluginutils@^2.8.2:
dependencies:
estree-walker "^0.6.1"

rollup@^2.59.0, rollup@^2.74.1, rollup@^2.75.6:
rollup@^2.74.1, rollup@^2.75.6:
version "2.75.7"
resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.75.7.tgz#221ff11887ae271e37dcc649ba32ce1590aaa0b9"
integrity sha512-VSE1iy0eaAYNCxEXaleThdFXqZJ42qDBatAwrfnPlENEZ8erQ+0LYX4JXOLPceWfZpV1VtZwZ3dFCuOZiSyFtQ==
Expand Down Expand Up @@ -21083,15 +21083,15 @@ vfile@5.3.2, vfile@^5.0.0:
unist-util-stringify-position "^3.0.0"
vfile-message "^3.0.0"

vite@2.9.14:
version "2.9.14"
resolved "https://registry.yarnpkg.com/vite/-/vite-2.9.14.tgz#c438324c6594afd1050df3777da981dee988bb1b"
integrity sha512-P/UCjSpSMcE54r4mPak55hWAZPlyfS369svib/gpmz8/01L822lMPOJ/RYW6tLCe1RPvMvOsJ17erf55bKp4Hw==
vite@3.0.2:
version "3.0.2"
resolved "https://registry.yarnpkg.com/vite/-/vite-3.0.2.tgz#2a7b4642c53ae066cf724e7e581d6c1fd24e2c32"
integrity sha512-TAqydxW/w0U5AoL5AsD9DApTvGb2iNbGs3sN4u2VdT1GFkQVUfgUldt+t08TZgi23uIauh1TUOQJALduo9GXqw==
dependencies:
esbuild "^0.14.27"
postcss "^8.4.13"
resolve "^1.22.0"
rollup "^2.59.0"
esbuild "^0.14.47"
postcss "^8.4.14"
resolve "^1.22.1"
rollup "^2.75.6"
optionalDependencies:
fsevents "~2.3.2"

Expand Down

0 comments on commit 54a67e6

Please sign in to comment.