Skip to content

Commit 02f31e3

Browse files
committed
the hell
1 parent 2b717e3 commit 02f31e3

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

packages/kit/src/runtime/server/cookie.js

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
import { parse, serialize } from 'cookie';
22
import { normalize_path, resolve } from '../../utils/url.js';
3-
<<<<<<< HEAD
4-
=======
5-
import { warn_with_callsite } from './utils.js';
6-
>>>>>>> master
73

84
/**
95
* Tracks all cookies set during dev mode so we can emit warnings
@@ -18,32 +14,11 @@ const cookie_paths = {};
1814
*/
1915
const MAX_COOKIE_SIZE = 4129;
2016

21-
<<<<<<< HEAD
2217
// TODO 3.0 remove this check
2318
/** @param {import('./page/types.js').Cookie['options']} options */
2419
function validate_options(options) {
2520
if (options?.path === undefined) {
2621
throw new Error('You must specify a `path` when setting, deleting or serializing cookies');
27-
=======
28-
/**
29-
*
30-
* @param {import('cookie').CookieSerializeOptions} opts
31-
* @param {'set' | 'delete' | 'serialize'} method
32-
*/
33-
function deprecate_missing_path(opts, method) {
34-
if (opts.path === undefined) {
35-
warn_with_callsite(
36-
`Calling \`cookies.${method}(...)\` without specifying a \`path\` is deprecated, and will be disallowed in SvelteKit 2.0. Relative paths can be used`,
37-
1
38-
);
39-
}
40-
41-
if (opts.path === '') {
42-
warn_with_callsite(
43-
`Calling \`cookies.${method}(...)\` with \`path: ''\` will behave differently in SvelteKit 2.0. Instead of using the browser default behaviour, it will set the cookie path to the current pathname`,
44-
1
45-
);
46-
>>>>>>> master
4722
}
4823
}
4924

0 commit comments

Comments
 (0)