Skip to content

Commit

Permalink
Update to 1.17.1
Browse files Browse the repository at this point in the history
  • Loading branch information
blittle committed Jun 8, 2023
1 parent 0e069d4 commit 28110ca
Show file tree
Hide file tree
Showing 9 changed files with 771 additions and 155 deletions.
881 changes: 745 additions & 136 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@
"vitest": "^0.28.1"
},
"peerDependencies": {
"@remix-run/react": "^1.16.1",
"@remix-run/react": "^1.17.1-pre.0",
"@shopify/hydrogen-react": "^2023.4.3",
"@shopify/remix-oxygen": "^1.0.7"
},
"dependencies": {
"@graphql-codegen/cli": "3.3.1",
"@oclif/core": "2.1.4",
"@remix-run/dev": "1.16.1",
"@remix-run/dev": "1.17.1-pre.0",
"@shopify/cli-kit": "3.45.0",
"@shopify/hydrogen-codegen": "^0.0.1",
"@shopify/mini-oxygen": "^1.6.0",
Expand Down
15 changes: 9 additions & 6 deletions packages/cli/src/commands/hydrogen/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,14 @@ export async function runBuild({

outputInfo(`\n🏗️ Building in ${process.env.NODE_ENV} mode...`);

const [remixConfig, {build}, {logThrown}] = await Promise.all([
getRemixConfig(root),
import('@remix-run/dev/dist/compiler/build.js'),
import('@remix-run/dev/dist/compiler/utils/log.js'),
rmdir(buildPath, {force: true}),
]);
const [remixConfig, {build}, {logThrown}, {createFileWatchCache}] =
await Promise.all([
getRemixConfig(root),
import('@remix-run/dev/dist/compiler/build.js'),
import('@remix-run/dev/dist/compiler/utils/log.js'),
import('@remix-run/dev/dist/compiler/fileWatchCache.js'),
rmdir(buildPath, {force: true}),
]);

await Promise.all([
copyPublicFiles(publicPath, buildPathClient),
Expand All @@ -82,6 +84,7 @@ export async function runBuild({
onWarning: warnOnce,
sourcemap,
},
fileWatchCache: createFileWatchCache(),
}).catch((thrown) => {
logThrown(thrown);
process.exit(1);
Expand Down
6 changes: 5 additions & 1 deletion packages/cli/src/commands/hydrogen/dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,10 @@ async function runDev({
}

let isInitialBuild = true;
const {watch} = await import('@remix-run/dev/dist/compiler/watch.js');
const [{watch}, {createFileWatchCache}] = await Promise.all([
import('@remix-run/dev/dist/compiler/watch.js'),
import('@remix-run/dev/dist/compiler/fileWatchCache.js'),
]);

const remixConfig = await reloadConfig();

Expand All @@ -161,6 +164,7 @@ async function runDev({
onWarning: warnOnce,
sourcemap,
},
fileWatchCache: createFileWatchCache(),
},
{
reloadConfig,
Expand Down
4 changes: 2 additions & 2 deletions packages/hydrogen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@
"react": "^18.2.0"
},
"peerDependencies": {
"@remix-run/react": "^1.16.1",
"@remix-run/server-runtime": "^1.16.1"
"@remix-run/react": "^1.17.1-pre.0",
"@remix-run/server-runtime": "^1.17.1-pre.0"
},
"devDependencies": {
"@testing-library/react": "^14.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/remix-oxygen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"dist"
],
"dependencies": {
"@remix-run/server-runtime": "1.16.1"
"@remix-run/server-runtime": "1.17.1-pre.0"
},
"devDependencies": {
"@shopify/oxygen-workers-types": "^3.17.2"
Expand Down
6 changes: 3 additions & 3 deletions templates/demo-store/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"prettier": "@shopify/prettier-config",
"dependencies": {
"@headlessui/react": "^1.7.2",
"@remix-run/react": "1.16.1",
"@remix-run/react": "1.17.1-pre.0",
"@shopify/cli": "3.45.0",
"@shopify/cli-hydrogen": "^4.2.1",
"@shopify/hydrogen": "^2023.4.3",
Expand All @@ -38,8 +38,8 @@
"worktop": "^0.7.3"
},
"devDependencies": {
"@remix-run/dev": "1.16.1",
"@remix-run/eslint-config": "1.16.1",
"@remix-run/dev": "1.17.1-pre.0",
"@remix-run/eslint-config": "1.17.1-pre.0",
"@shopify/eslint-plugin": "^42.0.1",
"@shopify/oxygen-workers-types": "^3.17.2",
"@shopify/prettier-config": "^1.1.2",
Expand Down
4 changes: 2 additions & 2 deletions templates/hello-world/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"prettier": "@shopify/prettier-config",
"dependencies": {
"@remix-run/react": "1.16.1",
"@remix-run/react": "1.17.1-pre.0",
"@shopify/cli": "3.45.0",
"@shopify/cli-hydrogen": "^4.2.1",
"@shopify/hydrogen": "^2023.4.3",
Expand All @@ -24,7 +24,7 @@
"react-dom": "^18.2.0"
},
"devDependencies": {
"@remix-run/dev": "1.16.1",
"@remix-run/dev": "1.17.1-pre.0",
"@shopify/oxygen-workers-types": "^3.17.2",
"@shopify/prettier-config": "^1.1.2",
"@types/eslint": "^8.4.10",
Expand Down
4 changes: 2 additions & 2 deletions templates/skeleton/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"prettier": "@shopify/prettier-config",
"dependencies": {
"@remix-run/react": "1.16.1",
"@remix-run/react": "1.17.1-pre.0",
"@shopify/cli": "3.45.0",
"@shopify/cli-hydrogen": "^4.2.1",
"@shopify/hydrogen": "^2023.4.3",
Expand All @@ -24,7 +24,7 @@
"react-dom": "^18.2.0"
},
"devDependencies": {
"@remix-run/dev": "1.16.1",
"@remix-run/dev": "1.17.1-pre.0",
"@shopify/oxygen-workers-types": "^3.17.2",
"@shopify/prettier-config": "^1.1.2",
"@types/eslint": "^8.4.10",
Expand Down

0 comments on commit 28110ca

Please sign in to comment.