@sveltejs/kit 1.0.0-next.308 → 1.0.0-next.309

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.
@@ -1161,7 +1161,14 @@ async function render_response({
1161
1161
  stores: {
1162
1162
  page: writable(null),
1163
1163
  navigating: writable(null),
1164
- session,
1164
+ /** @type {import('svelte/store').Writable<App.Session>} */
1165
+ session: {
1166
+ ...session,
1167
+ subscribe: (fn) => {
1168
+ is_private = true;
1169
+ return session.subscribe(fn);
1170
+ }
1171
+ },
1165
1172
  updated
1166
1173
  },
1167
1174
  /** @type {import('types').Page} */
@@ -1199,17 +1206,7 @@ async function render_response({
1199
1206
  props[`props_${i}`] = await branch[i].loaded.props;
1200
1207
  }
1201
1208
 
1202
- let session_tracking_active = false;
1203
- const unsubscribe = session.subscribe(() => {
1204
- if (session_tracking_active) is_private = true;
1205
- });
1206
- session_tracking_active = true;
1207
-
1208
- try {
1209
- rendered = options.root.render(props);
1210
- } finally {
1211
- unsubscribe();
1212
- }
1209
+ rendered = options.root.render(props);
1213
1210
  } else {
1214
1211
  rendered = { head: '', html: '', css: { code: '', map: null } };
1215
1212
  }
package/dist/cli.js CHANGED
@@ -870,7 +870,7 @@ async function launch(port, https, base) {
870
870
  exec(`${cmd} ${https ? 'https' : 'http'}://localhost:${port}${base}`);
871
871
  }
872
872
 
873
- const prog = sade('svelte-kit').version('1.0.0-next.308');
873
+ const prog = sade('svelte-kit').version('1.0.0-next.309');
874
874
 
875
875
  prog
876
876
  .command('dev')
@@ -1049,7 +1049,7 @@ async function check_port(port) {
1049
1049
  function welcome({ port, host, https, open, base, loose, allow, cwd }) {
1050
1050
  if (open) launch(port, https, base);
1051
1051
 
1052
- console.log($.bold().cyan(`\n SvelteKit v${'1.0.0-next.308'}\n`));
1052
+ console.log($.bold().cyan(`\n SvelteKit v${'1.0.0-next.309'}\n`));
1053
1053
 
1054
1054
  const protocol = https ? 'https:' : 'http:';
1055
1055
  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.308",
3
+ "version": "1.0.0-next.309",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/sveltejs/kit",