Skip to content

Commit

Permalink
test: upgrade all deps
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Jul 16, 2024
1 parent 3002711 commit 648d016
Show file tree
Hide file tree
Showing 4 changed files with 995 additions and 867 deletions.
56 changes: 56 additions & 0 deletions test/__snapshots__/dts.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,17 @@ exports[`should emit declaration files with experimentalDts 1`] = `
// dist/_tsup-dts-rollup.d.mts
//////////////////////////////////////////////////////////////////////
import { PipeableStream } from 'react-dom/server';
import { ReactDOMServerReadableStream } from 'react-dom/server';
import { renderToNodeStream } from 'react-dom/server';
import { renderToPipeableStream } from 'react-dom/server';
import { RenderToPipeableStreamOptions } from 'react-dom/server';
import { renderToReadableStream } from 'react-dom/server';
import { RenderToReadableStreamOptions } from 'react-dom/server';
import { renderToStaticMarkup } from 'react-dom/server';
import { renderToStaticNodeStream } from 'react-dom/server';
import { renderToString } from 'react-dom/server';
import { ServerOptions } from 'react-dom/server';
import * as ServerThirdPartyNamespace from 'react-dom';
import { version } from 'react-dom/server';
Expand All @@ -53,6 +60,10 @@ export { ClientRenderOptions as ClientRenderOptions_alias_1 }
export declare function default_alias(options: ServerRenderOptions): void;
export { PipeableStream }
export { ReactDOMServerReadableStream }
declare function render(options: ClientRenderOptions): string;
export { render }
export { render as render_alias_1 }
Expand All @@ -64,6 +75,14 @@ export declare function render_alias_2(options: ServerRenderOptions): string;
export { renderToNodeStream }
export { renderToPipeableStream }
export { RenderToPipeableStreamOptions }
export { renderToReadableStream }
export { RenderToReadableStreamOptions }
export { renderToStaticMarkup }
export { renderToStaticNodeStream }
Expand All @@ -77,6 +96,8 @@ declare const serverConstant = 1;
export { serverConstant }
export { serverConstant as serverConstantAlias }
export { ServerOptions }
export declare interface ServerRenderOptions {
/**
* Comment for ServerRenderOptions.stream
Expand Down Expand Up @@ -115,10 +136,17 @@ export { }
// dist/_tsup-dts-rollup.d.ts
//////////////////////////////////////////////////////////////////////
import { PipeableStream } from 'react-dom/server';
import { ReactDOMServerReadableStream } from 'react-dom/server';
import { renderToNodeStream } from 'react-dom/server';
import { renderToPipeableStream } from 'react-dom/server';
import { RenderToPipeableStreamOptions } from 'react-dom/server';
import { renderToReadableStream } from 'react-dom/server';
import { RenderToReadableStreamOptions } from 'react-dom/server';
import { renderToStaticMarkup } from 'react-dom/server';
import { renderToStaticNodeStream } from 'react-dom/server';
import { renderToString } from 'react-dom/server';
import { ServerOptions } from 'react-dom/server';
import * as ServerThirdPartyNamespace from 'react-dom';
import { version } from 'react-dom/server';
Expand All @@ -130,6 +158,10 @@ export { ClientRenderOptions as ClientRenderOptions_alias_1 }
export declare function default_alias(options: ServerRenderOptions): void;
export { PipeableStream }
export { ReactDOMServerReadableStream }
declare function render(options: ClientRenderOptions): string;
export { render }
export { render as render_alias_1 }
Expand All @@ -141,6 +173,14 @@ export declare function render_alias_2(options: ServerRenderOptions): string;
export { renderToNodeStream }
export { renderToPipeableStream }
export { RenderToPipeableStreamOptions }
export { renderToReadableStream }
export { RenderToReadableStreamOptions }
export { renderToStaticMarkup }
export { renderToStaticNodeStream }
Expand All @@ -154,6 +194,8 @@ declare const serverConstant = 1;
export { serverConstant }
export { serverConstant as serverConstantAlias }
export { ServerOptions }
export declare interface ServerRenderOptions {
/**
* Comment for ServerRenderOptions.stream
Expand Down Expand Up @@ -243,10 +285,17 @@ export { ServerClass } from '../_tsup-dts-rollup';
export { ServerThirdPartyNamespace } from '../_tsup-dts-rollup';
export { sharedFunction_alias_2 as sharedFunction } from '../_tsup-dts-rollup';
export { sharedType_alias_2 as sharedType } from '../_tsup-dts-rollup';
export { renderToPipeableStream } from '../_tsup-dts-rollup';
export { renderToString } from '../_tsup-dts-rollup';
export { renderToNodeStream } from '../_tsup-dts-rollup';
export { renderToStaticMarkup } from '../_tsup-dts-rollup';
export { renderToStaticNodeStream } from '../_tsup-dts-rollup';
export { renderToReadableStream } from '../_tsup-dts-rollup';
export { RenderToPipeableStreamOptions } from '../_tsup-dts-rollup';
export { PipeableStream } from '../_tsup-dts-rollup';
export { ServerOptions } from '../_tsup-dts-rollup';
export { RenderToReadableStreamOptions } from '../_tsup-dts-rollup';
export { ReactDOMServerReadableStream } from '../_tsup-dts-rollup';
export { version } from '../_tsup-dts-rollup';
Expand All @@ -263,10 +312,17 @@ export { ServerClass } from '../_tsup-dts-rollup';
export { ServerThirdPartyNamespace } from '../_tsup-dts-rollup';
export { sharedFunction_alias_2 as sharedFunction } from '../_tsup-dts-rollup';
export { sharedType_alias_2 as sharedType } from '../_tsup-dts-rollup';
export { renderToPipeableStream } from '../_tsup-dts-rollup';
export { renderToString } from '../_tsup-dts-rollup';
export { renderToNodeStream } from '../_tsup-dts-rollup';
export { renderToStaticMarkup } from '../_tsup-dts-rollup';
export { renderToStaticNodeStream } from '../_tsup-dts-rollup';
export { renderToReadableStream } from '../_tsup-dts-rollup';
export { RenderToPipeableStreamOptions } from '../_tsup-dts-rollup';
export { PipeableStream } from '../_tsup-dts-rollup';
export { ServerOptions } from '../_tsup-dts-rollup';
export { RenderToReadableStreamOptions } from '../_tsup-dts-rollup';
export { ReactDOMServerReadableStream } from '../_tsup-dts-rollup';
export { version } from '../_tsup-dts-rollup';
"
`;
2 changes: 1 addition & 1 deletion test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ test('use rollup for treeshaking', async () => {
},
)
expect(await getFileContent('dist/input.mjs')).toContain(
`function useRoute() {
`function useRoute(_name) {
return inject(routeLocationKey);
}`,
)
Expand Down
24 changes: 12 additions & 12 deletions test/package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"private": true,
"devDependencies": {
"@egoist/path-parser": "1.0.4",
"@types/react": "17.0.50",
"@types/react-dom": "17.0.17",
"autoprefixer": "10.4.16",
"graphql": "^15.3.0",
"graphql-tools": "^5.0.0",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-select": "5.7.0",
"tailwindcss": "3.3.5",
"vue": "3.2.36",
"vue-router": "4.0.15"
"@egoist/path-parser": "1.0.6",
"@types/react": "18.3.3",
"@types/react-dom": "18.3.0",
"autoprefixer": "10.4.19",
"graphql": "^16.9.0",
"graphql-tools": "^9.0.1",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-select": "5.8.0",
"tailwindcss": "3.4.6",
"vue": "3.4.31",
"vue-router": "4.4.0"
},
"tsup": {}
}
Loading

0 comments on commit 648d016

Please sign in to comment.