Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Nov 1, 2023
1 parent 2f8fe3d commit e4dfb5b
Show file tree
Hide file tree
Showing 7 changed files with 126 additions and 125 deletions.
16 changes: 8 additions & 8 deletions packages/esbuild/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ it('uses esbuild to make bundle', async () => {
esbuildMetafile: config.checks[0].esbuildMetafile,
esbuildOutfile: config.checks[0].esbuildOutfile,
files: [fixture('cjs/big.js')],
size: 2140
size: 2146
}
]
})
Expand All @@ -78,7 +78,7 @@ describe('supports custom esbuild config', () => {
configPath: ROOT_CONFIG
}
await run(config)
expect(config.checks[0].size).toBe(490)
expect(config.checks[0].size).toBe(493)
})

it('works with esm config', async () => {
Expand All @@ -87,7 +87,7 @@ describe('supports custom esbuild config', () => {
configPath: ROOT_CONFIG
}
await run(config)
expect(config.checks[0].size).toBe(166)
expect(config.checks[0].size).toBe(173)
})
})

Expand All @@ -98,7 +98,7 @@ describe('supports custom entry', () => {
configPath: ROOT_CONFIG
}
await run(config)
expect(config.checks[0].size).toBe(229)
expect(config.checks[0].size).toBe(230)
})

it('works with esm config', async () => {
Expand All @@ -107,7 +107,7 @@ describe('supports custom entry', () => {
configPath: ROOT_CONFIG
}
await run(config)
expect(config.checks[0].size).toBe(68)
expect(config.checks[0].size).toBe(70)
})
})

Expand Down Expand Up @@ -152,7 +152,7 @@ it('allows to disable esbuild', async () => {
checks: [{ esbuild: false, files: [fixture('cjs/big.js')] }]
}
await run(config)
expect(config.checks[0].size).toBe(55)
expect(config.checks[0].size).toBe(56)
})

it('allows to disable gzip', async () => {
Expand Down Expand Up @@ -265,7 +265,7 @@ it('can use `modifyEsbuildConfig` for resolution of aliases', async () => {
return config
}
})
).toBe(2140)
).toBe(2146)
})

it('supports specifying the import', async () => {
Expand Down Expand Up @@ -315,5 +315,5 @@ it('supports wildcard imports', async () => {
[fixture('esm/module.js')]: '*'
}
})
).toBe(191)
).toBe(192)
})
4 changes: 2 additions & 2 deletions packages/size-limit/test/__snapshots__/run.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -344,9 +344,9 @@ exports[`supports import and ignore for esbuild 1`] = `

exports[`supports import and ignore for esbuild and gzip 1`] = `
"
[42m[30mPackage size is 2 B less than limit[39m[49m
[42m[30mPackage size is 3 B less than limit[39m[49m
Size limit: 49 B
Size: [32m[1m47 B[22m[39m [90mwith all dependencies, minified and gzipped[39m
Size: [32m[1m46 B[22m[39m [90mwith all dependencies, minified and gzipped[39m
"
`;
Expand Down
3 changes: 1 addition & 2 deletions packages/size-limit/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,5 @@ it('works with file module only', async () => {

it('works with esbuild module', async () => {
let result = await sizeLimit([esbuildPlugin, filePlugin], [INTEGRATION])

expect(result).toEqual([{ size: 87 }])
expect(result).toEqual([{ size: 90 }])
})
4 changes: 2 additions & 2 deletions packages/size-limit/test/run.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -374,9 +374,9 @@ it.skipIf(NODE_VERSION < 16)(
'allows to use peer dependencies in import',
async () => {
await checkJson('combine', [
{ name: 'all', size: 2269 },
{ name: 'all', size: 2273 },
{ name: 'a', size: 1 },
{ name: 'redux', size: 2265 }
{ name: 'redux', size: 2270 }
])
}
)
Expand Down
2 changes: 1 addition & 1 deletion packages/webpack-why/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"webpack": "^4.0.0 || ^5.0.0"
},
"dependencies": {
"@statoscope/webpack-plugin": "^5.28.1"
"@statoscope/webpack-plugin": "^5.28.2"
},
"devDependencies": {
"@size-limit/file": "workspace:^",
Expand Down
24 changes: 12 additions & 12 deletions packages/webpack/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ it('uses webpack to make bundle', async () => {
{
bundles: [join(config.checks[0].webpackOutput, 'index.js')],
files: [fixture('cjs/big.js')],
size: 2482,
size: 2484,
webpackConfig: config.checks[0].webpackConfig,
webpackOutput: config.checks[0].webpackOutput
}
Expand All @@ -77,7 +77,7 @@ describe('supports custom webpack config', () => {
configPath: ROOT_CONFIG
}
await run(config)
expect(config.checks[0].size).toBe(1160)
expect(config.checks[0].size).toBe(1149)
})

it('works with esm config', async () => {
Expand All @@ -86,7 +86,7 @@ describe('supports custom webpack config', () => {
configPath: ROOT_CONFIG
}
await run(config)
expect(config.checks[0].size).toBe(1605)
expect(config.checks[0].size).toBe(1597)
})
})

Expand All @@ -97,7 +97,7 @@ describe('supports custom webpack config defined as function', () => {
configPath: ROOT_CONFIG
}
await run(config)
expect(config.checks[0].size).toBe(1160)
expect(config.checks[0].size).toBe(1149)
})

it('works with esm', async () => {
Expand All @@ -106,7 +106,7 @@ describe('supports custom webpack config defined as function', () => {
configPath: ROOT_CONFIG
}
await run(config)
expect(config.checks[0].size).toBe(1605)
expect(config.checks[0].size).toBe(1597)
})
})

Expand All @@ -117,7 +117,7 @@ describe('supports custom webpack config defined as async function', () => {
configPath: ROOT_CONFIG
}
await run(config)
expect(config.checks[0].size).toBe(1160)
expect(config.checks[0].size).toBe(1149)
})

it('works with esm', async () => {
Expand All @@ -126,7 +126,7 @@ describe('supports custom webpack config defined as async function', () => {
configPath: ROOT_CONFIG
}
await run(config)
expect(config.checks[0].size).toBe(1605)
expect(config.checks[0].size).toBe(1597)
})
})

Expand All @@ -137,7 +137,7 @@ describe('supports custom entry', () => {
configPath: ROOT_CONFIG
}
await run(config)
expect(config.checks[0].size).toBe(569)
expect(config.checks[0].size).toBe(563)
})

it('works with esm config', async () => {
Expand All @@ -146,7 +146,7 @@ describe('supports custom entry', () => {
configPath: ROOT_CONFIG
}
await run(config)
expect(config.checks[0].size).toBe(792)
expect(config.checks[0].size).toBe(788)
})
})

Expand Down Expand Up @@ -191,7 +191,7 @@ it('allows to disable webpack', async () => {
checks: [{ files: [fixture('cjs/big.js')], webpack: false }]
}
await run(config)
expect(config.checks[0].size).toBe(55)
expect(config.checks[0].size).toBe(56)
})

it('allows to disable gzip', async () => {
Expand Down Expand Up @@ -311,7 +311,7 @@ it('supports specifying the import', async () => {
[fixture('esm/module.js')]: '{ methodA }'
}
})
).toBe(83)
).toBe(85)
})

it('supports import with multiple files', async () => {
Expand Down Expand Up @@ -342,5 +342,5 @@ it('can use `modifyWebpackConfig` for resolution of aliases', async () => {
return config
}
})
).toBe(83)
).toBe(85)
})

0 comments on commit e4dfb5b

Please sign in to comment.