Skip to content
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

remove warning of removed feature in lib/client-api #19544

Merged
merged 2 commits into from
Oct 20, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions code/lib/client-api/src/StoryStoreFacade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import type {
IndexEntry,
} from '@storybook/store';
import { logger } from '@storybook/client-logger';
import deprecate from 'util-deprecate';
import type { DocsOptions } from '@storybook/core-common';

export interface GetStorybookStory<TFramework extends AnyFramework> {
Expand All @@ -35,9 +34,6 @@ export interface GetStorybookKind<TFramework extends AnyFramework> {
stories: GetStorybookStory<TFramework>[];
}

const docs2Warning = deprecate(() => {},
`You cannot use \`.mdx\` files without using \`storyStoreV7\`. Consider upgrading to the new store.`);

export class StoryStoreFacade<TFramework extends AnyFramework> {
projectAnnotations: NormalizedProjectAnnotations<TFramework>;

Expand Down Expand Up @@ -152,7 +148,6 @@ export class StoryStoreFacade<TFramework extends AnyFramework> {
// NOTE: we could potentially share some of this code with the stories.json generation
addStoriesFromExports(fileName: Path, fileExports: ModuleExports) {
if (fileName.match(/\.mdx$/) && !fileName.match(/\.stories\.mdx$/)) {
docs2Warning();
return;
}

Expand Down