@uniformdev/context-next 19.206.0 → 19.207.1-alpha.20

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.
package/dist/index.esm.js CHANGED
@@ -26,14 +26,19 @@ function enableNextSsr(ctx, context) {
26
26
  // src/NextCookieTransitionDataStore.ts
27
27
  import {
28
28
  CookieTransitionDataStore,
29
- UNIFORM_DEFAULT_COOKIE_NAME
29
+ UNIFORM_DEFAULT_COOKIE_NAME,
30
+ UNIFORM_DEFAULT_QUIRK_COOKIE_NAME
30
31
  } from "@uniformdev/context";
31
32
  import { parse as parse2 } from "cookie";
32
33
  var NextCookieTransitionDataStore = class extends CookieTransitionDataStore {
33
34
  constructor({ serverContext, ...options }) {
34
35
  super({
35
36
  ...options,
36
- serverCookieValue: getNextServerCookieValue(serverContext)
37
+ serverCookieValue: getNextServerCookieValue(serverContext),
38
+ quirkCookieValue: options.experimental_quirksEnabled ? getNextServerCookieValue(
39
+ serverContext,
40
+ options.quirkCookieName || UNIFORM_DEFAULT_QUIRK_COOKIE_NAME
41
+ ) : void 0
37
42
  });
38
43
  }
39
44
  };
package/dist/index.js CHANGED
@@ -67,7 +67,11 @@ var NextCookieTransitionDataStore = class extends import_context.CookieTransitio
67
67
  constructor({ serverContext, ...options }) {
68
68
  super({
69
69
  ...options,
70
- serverCookieValue: getNextServerCookieValue(serverContext)
70
+ serverCookieValue: getNextServerCookieValue(serverContext),
71
+ quirkCookieValue: options.experimental_quirksEnabled ? getNextServerCookieValue(
72
+ serverContext,
73
+ options.quirkCookieName || import_context.UNIFORM_DEFAULT_QUIRK_COOKIE_NAME
74
+ ) : void 0
71
75
  });
72
76
  }
73
77
  };
package/dist/index.mjs CHANGED
@@ -26,14 +26,19 @@ function enableNextSsr(ctx, context) {
26
26
  // src/NextCookieTransitionDataStore.ts
27
27
  import {
28
28
  CookieTransitionDataStore,
29
- UNIFORM_DEFAULT_COOKIE_NAME
29
+ UNIFORM_DEFAULT_COOKIE_NAME,
30
+ UNIFORM_DEFAULT_QUIRK_COOKIE_NAME
30
31
  } from "@uniformdev/context";
31
32
  import { parse as parse2 } from "cookie";
32
33
  var NextCookieTransitionDataStore = class extends CookieTransitionDataStore {
33
34
  constructor({ serverContext, ...options }) {
34
35
  super({
35
36
  ...options,
36
- serverCookieValue: getNextServerCookieValue(serverContext)
37
+ serverCookieValue: getNextServerCookieValue(serverContext),
38
+ quirkCookieValue: options.experimental_quirksEnabled ? getNextServerCookieValue(
39
+ serverContext,
40
+ options.quirkCookieName || UNIFORM_DEFAULT_QUIRK_COOKIE_NAME
41
+ ) : void 0
37
42
  });
38
43
  }
39
44
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/context-next",
3
- "version": "19.206.0",
3
+ "version": "19.207.1-alpha.20+9dc4b12464",
4
4
  "description": "Uniform Context Next.js integration package",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -31,7 +31,7 @@
31
31
  "react-dom": "18.3.1"
32
32
  },
33
33
  "dependencies": {
34
- "@uniformdev/context": "19.206.0",
34
+ "@uniformdev/context": "19.207.1-alpha.20+9dc4b12464",
35
35
  "cookie": "^1.0.1"
36
36
  },
37
37
  "peerDependencies": {
@@ -45,5 +45,5 @@
45
45
  "publishConfig": {
46
46
  "access": "public"
47
47
  },
48
- "gitHead": "1053420353bc9a7ec6930f9e65e18089c6497977"
48
+ "gitHead": "9dc4b1246494bc273e86dd22cd4818aa4ebd1c24"
49
49
  }