Socket
Socket
Sign inDemoInstall

@sveltejs/kit

Package Overview
Dependencies
Maintainers
4
Versions
785
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sveltejs/kit - npm Package Compare versions

Comparing version 1.27.3 to 1.27.4

6

package.json
{
"name": "@sveltejs/kit",
"version": "1.27.3",
"version": "1.27.4",
"description": "The fastest way to build Svelte apps",

@@ -14,3 +14,3 @@ "repository": {

"dependencies": {
"@sveltejs/vite-plugin-svelte": "^2.4.1",
"@sveltejs/vite-plugin-svelte": "^2.5.0",
"@types/cookie": "^0.5.1",

@@ -45,3 +45,3 @@ "cookie": "^0.5.0",

"peerDependencies": {
"svelte": "^3.54.0 || ^4.0.0-next.0",
"svelte": "^3.54.0 || ^4.0.0-next.0 || ^5.0.0-next.0",
"vite": "^4.0.0"

@@ -48,0 +48,0 @@ },

import fs from 'node:fs';
import path from 'node:path';
import { VERSION } from 'svelte/compiler';
import { mkdirp } from '../../utils/filesystem.js';

@@ -71,1 +72,5 @@

}
export function isSvelte5Plus() {
return Number(VERSION[0]) >= 5;
}
import path from 'node:path';
import { relative_path, resolve_entry } from '../../utils/filesystem.js';
import { s } from '../../utils/misc.js';
import { dedent, write_if_changed } from './utils.js';
import { dedent, isSvelte5Plus, write_if_changed } from './utils.js';
import colors from 'kleur';

@@ -146,3 +146,3 @@

export { default as root } from '../root.svelte';
export { default as root } from '../root.${isSvelte5Plus() ? 'js' : 'svelte'}';
`

@@ -149,0 +149,0 @@ );

@@ -1,2 +0,2 @@

import { dedent, write_if_changed } from './utils.js';
import { dedent, isSvelte5Plus, write_if_changed } from './utils.js';

@@ -92,2 +92,13 @@ /**

);
if (isSvelte5Plus()) {
write_if_changed(
`${output}/root.js`,
dedent`
import { asClassComponent } from 'svelte/legacy';
import Root from './root.svelte';
export default asClassComponent(Root);
`
);
}
}

@@ -7,3 +7,3 @@ import path from 'node:path';

import { runtime_directory } from '../utils.js';
import { write_if_changed } from './utils.js';
import { isSvelte5Plus, write_if_changed } from './utils.js';
import colors from 'kleur';

@@ -29,3 +29,3 @@

}) => `
import root from '../root.svelte';
import root from '../root.${isSvelte5Plus() ? 'js' : 'svelte'}';
import { set_building } from '__sveltekit/environment';

@@ -32,0 +32,0 @@ import { set_assets } from '__sveltekit/paths';

@@ -27,3 +27,3 @@ import fs from 'node:fs';

import { hash } from '../../runtime/hash.js';
import { dedent } from '../../core/sync/utils.js';
import { dedent, isSvelte5Plus } from '../../core/sync/utils.js';

@@ -140,3 +140,3 @@ export { vitePreprocess } from '@sveltejs/vite-plugin-svelte';

// @ts-expect-error SvelteKit requires hydratable true by default
hydratable: true,
hydratable: isSvelte5Plus() ? undefined : true,
...svelte_config.compilerOptions

@@ -143,0 +143,0 @@ },

@@ -93,3 +93,4 @@ import { applyAction } from '../app/forms';

props: {
components: Array<typeof SvelteComponent>;
constructors: Array<typeof SvelteComponent>;
components?: Array<SvelteComponent>;
page?: Page;

@@ -96,0 +97,0 @@ form?: Record<string, any> | null;

@@ -102,3 +102,3 @@ import { text } from '../../../exports/index.js';

if (get_option(nodes, 'ssr') === false) {
if (get_option(nodes, 'ssr') === false && !state.prerendering) {
return await render_response({

@@ -105,0 +105,0 @@ branch: [],

// generated during release, do not modify
/** @type {string} */
export const VERSION = '1.27.3';
export const VERSION = '1.27.4';
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc