@storybook/nextjs 9.1.13 → 9.1.15

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.
@@ -6,11 +6,15 @@ export { unstable_noStore } from 'next/dist/server/web/spec-extension/unstable-n
6
6
 
7
7
  declare const revalidatePath: Mock<(...args: any[]) => any>;
8
8
  declare const revalidateTag: Mock<(...args: any[]) => any>;
9
+ declare const updateTag: Mock<(...args: any[]) => any>;
10
+ declare const refresh: Mock<(...args: any[]) => any>;
9
11
  declare const cacheExports: {
10
12
  unstable_cache: typeof unstable_cache;
11
13
  revalidateTag: Mock<(...args: any[]) => any>;
12
14
  revalidatePath: Mock<(...args: any[]) => any>;
13
15
  unstable_noStore: typeof unstable_noStore;
16
+ updateTag: Mock<(...args: any[]) => any>;
17
+ refresh: Mock<(...args: any[]) => any>;
14
18
  };
15
19
 
16
- export { cacheExports as default, revalidatePath, revalidateTag };
20
+ export { cacheExports as default, refresh, revalidatePath, revalidateTag, updateTag };
@@ -6,7 +6,7 @@ var unstableCache = require('next/dist/server/web/spec-extension/unstable-cache'
6
6
  var unstableNoStore = require('next/dist/server/web/spec-extension/unstable-no-store');
7
7
  var test = require('storybook/test');
8
8
 
9
- var revalidatePath=test.fn().mockName("next/cache::revalidatePath"),revalidateTag=test.fn().mockName("next/cache::revalidateTag"),cacheExports={unstable_cache: unstableCache.unstable_cache,revalidateTag,revalidatePath,unstable_noStore: unstableNoStore.unstable_noStore},cache_default=cacheExports;
9
+ var revalidatePath=test.fn().mockName("next/cache::revalidatePath"),revalidateTag=test.fn().mockName("next/cache::revalidateTag"),updateTag=test.fn().mockName("next/cache::updateTag"),refresh=test.fn().mockName("next/cache::refresh"),cacheExports={unstable_cache: unstableCache.unstable_cache,revalidateTag,revalidatePath,unstable_noStore: unstableNoStore.unstable_noStore,updateTag,refresh},cache_default=cacheExports;
10
10
 
11
11
  Object.defineProperty(exports, 'unstable_cache', {
12
12
  enumerable: true,
@@ -17,5 +17,7 @@ Object.defineProperty(exports, 'unstable_noStore', {
17
17
  get: function () { return unstableNoStore.unstable_noStore; }
18
18
  });
19
19
  exports.default = cache_default;
20
+ exports.refresh = refresh;
20
21
  exports.revalidatePath = revalidatePath;
21
22
  exports.revalidateTag = revalidateTag;
23
+ exports.updateTag = updateTag;
@@ -5,6 +5,6 @@ import { unstable_noStore } from 'next/dist/server/web/spec-extension/unstable-n
5
5
  export { unstable_noStore } from 'next/dist/server/web/spec-extension/unstable-no-store';
6
6
  import { fn } from 'storybook/test';
7
7
 
8
- var revalidatePath=fn().mockName("next/cache::revalidatePath"),revalidateTag=fn().mockName("next/cache::revalidateTag"),cacheExports={unstable_cache,revalidateTag,revalidatePath,unstable_noStore},cache_default=cacheExports;
8
+ var revalidatePath=fn().mockName("next/cache::revalidatePath"),revalidateTag=fn().mockName("next/cache::revalidateTag"),updateTag=fn().mockName("next/cache::updateTag"),refresh=fn().mockName("next/cache::refresh"),cacheExports={unstable_cache,revalidateTag,revalidatePath,unstable_noStore,updateTag,refresh},cache_default=cacheExports;
9
9
 
10
- export { cache_default as default, revalidatePath, revalidateTag };
10
+ export { cache_default as default, refresh, revalidatePath, revalidateTag, updateTag };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/nextjs",
3
- "version": "9.1.13",
3
+ "version": "9.1.15",
4
4
  "description": "Storybook for Next.js: Develop, document, and test UI components in isolation",
5
5
  "keywords": [
6
6
  "storybook",
@@ -148,9 +148,9 @@
148
148
  "@babel/preset-typescript": "^7.24.1",
149
149
  "@babel/runtime": "^7.24.4",
150
150
  "@pmmmwh/react-refresh-webpack-plugin": "^0.5.11",
151
- "@storybook/builder-webpack5": "9.1.13",
152
- "@storybook/preset-react-webpack": "9.1.13",
153
- "@storybook/react": "9.1.13",
151
+ "@storybook/builder-webpack5": "9.1.15",
152
+ "@storybook/preset-react-webpack": "9.1.15",
153
+ "@storybook/react": "9.1.15",
154
154
  "@types/semver": "^7.3.4",
155
155
  "babel-loader": "^9.1.3",
156
156
  "css-loader": "^6.7.3",
@@ -181,10 +181,10 @@
181
181
  "webpack": "^5.65.0"
182
182
  },
183
183
  "peerDependencies": {
184
- "next": "^14.1.0 || ^15.0.0",
184
+ "next": "^14.1.0 || ^15.0.0 || ^16.0.0",
185
185
  "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta",
186
186
  "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta",
187
- "storybook": "^9.1.13",
187
+ "storybook": "^9.1.15",
188
188
  "webpack": "^5.0.0"
189
189
  },
190
190
  "peerDependenciesMeta": {