-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Release: Patch 8.3.2 #29142
Merged
Merged
Release: Patch 8.3.2 #29142
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
code/core/src/common/js-package-manager/JsPackageManager.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
import { beforeEach, describe, expect, it, vi } from 'vitest'; | ||
|
||
import { JsPackageManager } from './JsPackageManager'; | ||
|
||
vi.mock('../versions', () => ({ | ||
default: { | ||
'@storybook/react': '8.3.0', | ||
}, | ||
})); | ||
|
||
describe('JsPackageManager', () => { | ||
let jsPackageManager: JsPackageManager; | ||
let mockLatestVersion: ReturnType<typeof vi.fn>; | ||
let mockStorybookPackagesVersions: Record<string, string>; | ||
|
||
beforeEach(() => { | ||
mockLatestVersion = vi.fn(); | ||
mockStorybookPackagesVersions = { | ||
'@storybook/react': '8.3.0', | ||
}; | ||
|
||
// @ts-expect-error Ignore abstract class error | ||
jsPackageManager = new JsPackageManager(); | ||
jsPackageManager.latestVersion = mockLatestVersion; | ||
|
||
vi.clearAllMocks(); | ||
}); | ||
|
||
describe('getVersionedPackages method', () => { | ||
it('should return the latest stable release version when current version is the latest stable release', async () => { | ||
mockLatestVersion.mockResolvedValue('8.3.0'); | ||
|
||
const result = await jsPackageManager.getVersionedPackages(['@storybook/react']); | ||
|
||
expect(result).toEqual(['@storybook/react@^8.3.0']); | ||
}); | ||
|
||
it('should return the current version when it is not the latest stable release', async () => { | ||
mockLatestVersion.mockResolvedValue('8.3.1'); | ||
|
||
const result = await jsPackageManager.getVersionedPackages(['@storybook/react']); | ||
|
||
expect(result).toEqual(['@storybook/[email protected]']); | ||
}); | ||
|
||
it('should return the latest stable release version when there is no current version', async () => { | ||
mockLatestVersion.mockResolvedValue('2.0.0'); | ||
|
||
const result = await jsPackageManager.getVersionedPackages(['@storybook/new-addon@^8.3.0']); | ||
|
||
expect(result).toEqual(['@storybook/new-addon@^2.0.0']); | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -295,5 +295,6 @@ | |
"Dependency Upgrades" | ||
] | ||
] | ||
} | ||
}, | ||
"deferredNextVersion": "8.3.2" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"version":"8.3.1","info":{"plain":"- Angular: Fix sourceDecorator to apply excludeDecorators flag - [#29069](https://github.com/storybookjs/storybook/pull/29069), thanks @JSMike!\n- Core: Do not prebundle better-opn - [#29137](https://github.com/storybookjs/storybook/pull/29137), thanks @valentinpalkovic!\n- Core: Do not prebundle jsdoc-type-pratt-parser - [#29134](https://github.com/storybookjs/storybook/pull/29134), thanks @valentinpalkovic!\n- Next.js: Upgrade sass-loader from ^12 to ^13 - [#29040](https://github.com/storybookjs/storybook/pull/29040), thanks @HoncharenkoZhenya!"}} | ||
{"version":"8.3.2","info":{"plain":"- CLI: Fix skip-install for stable latest releases - [#29133](https://github.com/storybookjs/storybook/pull/29133), thanks @valentinpalkovic!\n- Core: Do not add packageManager field to package.json during `storybook dev` - [#29152](https://github.com/storybookjs/storybook/pull/29152), thanks @valentinpalkovic!"}} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
style: Add version number to changelog header