@sveltejs/kit 1.0.0-next.273 → 1.0.0-next.274

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -736,11 +736,12 @@ class Renderer {
736
736
  * status: number;
737
737
  * error: Error;
738
738
  * nodes: Array<Promise<CSRComponent>>;
739
- * url: URL;
740
739
  * params: Record<string, string>;
741
740
  * }} selected
742
741
  */
743
- async start({ status, error, nodes, url, params }) {
742
+ async start({ status, error, nodes, params }) {
743
+ const url = new URL(location.href);
744
+
744
745
  /** @type {Array<import('./types').BranchNode | undefined>} */
745
746
  const branch = [];
746
747
 
@@ -752,9 +753,6 @@ class Renderer {
752
753
 
753
754
  let error_args;
754
755
 
755
- // url.hash is empty when coming from the server
756
- url.hash = window.location.hash;
757
-
758
756
  try {
759
757
  for (let i = 0; i < nodes.length; i += 1) {
760
758
  const is_leaf = i === nodes.length - 1;
@@ -1483,7 +1481,6 @@ class Renderer {
1483
1481
  * status: number;
1484
1482
  * error: Error;
1485
1483
  * nodes: Array<Promise<import('types/internal').CSRComponent>>;
1486
- * url: URL;
1487
1484
  * params: Record<string, string>;
1488
1485
  * };
1489
1486
  * }} opts
@@ -1209,7 +1209,6 @@ async function render_response({
1209
1209
  .map(({ node }) => `import(${s(options.prefix + node.entry)})`)
1210
1210
  .join(',\n\t\t\t\t\t\t')}
1211
1211
  ],
1212
- url: new URL(${s(url.href)}),
1213
1212
  params: ${devalue(params)}
1214
1213
  }` : 'null'}
1215
1214
  });
package/dist/cli.js CHANGED
@@ -998,7 +998,7 @@ async function launch(port, https) {
998
998
  exec(`${cmd} ${https ? 'https' : 'http'}://localhost:${port}`);
999
999
  }
1000
1000
 
1001
- const prog = sade('svelte-kit').version('1.0.0-next.273');
1001
+ const prog = sade('svelte-kit').version('1.0.0-next.274');
1002
1002
 
1003
1003
  prog
1004
1004
  .command('dev')
@@ -1156,7 +1156,7 @@ async function check_port(port) {
1156
1156
  function welcome({ port, host, https, open, loose, allow, cwd }) {
1157
1157
  if (open) launch(port, https);
1158
1158
 
1159
- console.log($.bold().cyan(`\n SvelteKit v${'1.0.0-next.273'}\n`));
1159
+ console.log($.bold().cyan(`\n SvelteKit v${'1.0.0-next.274'}\n`));
1160
1160
 
1161
1161
  const protocol = https ? 'https:' : 'http:';
1162
1162
  const exposed = typeof host !== 'undefined' && host !== 'localhost' && host !== '127.0.0.1';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sveltejs/kit",
3
- "version": "1.0.0-next.273",
3
+ "version": "1.0.0-next.274",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/sveltejs/kit",