Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion apps/test/apps.rules.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ describe('legacy apps rules coverage', () => {
expect(workflowGuard).toContain('apps/<app>/test/browser')
expect(workflowGuard).toContain('packages/emp-share/test/browser')
expect(workflowGuard).toContain('test:apps:browser')
expect(rootPackage.devDependencies?.['@rstest/browser']).toBe('0.11.4')
expect(rootPackage.devDependencies?.['@rstest/browser']).toBe('0.11.11')
expect(rootPackage.devDependencies?.playwright).toBe('1.62.0')
})
})
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@
"devDependencies": {
"@empjs/biome-config": "workspace:^",
"@empjs/rslib-presets": "workspace:*",
"@rslib/core": "1.0.0-beta.2",
"@rstest/browser": "0.11.4",
"@rstest/core": "0.11.4",
"@rslib/core": "1.0.0-rc.2",
"@rstest/browser": "0.11.11",
"@rstest/core": "0.11.11",
"@types/node": "^24.9.2",
"cross-env": "^7.0.3",
"playwright": "1.62.0",
Expand Down
12 changes: 6 additions & 6 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
},
"author": "Ken",
"devDependencies": {
"@rstest/core": "0.11.4",
"@rstest/core": "0.11.11",
"@types/compression": "^1.7.2",
"@types/connect": "^3.4.38",
"@types/cors": "^2.8.12",
Expand All @@ -111,9 +111,9 @@
},
"dependencies": {
"@empjs/chain": "workspace:*",
"@rsdoctor/rspack-plugin": "1.6.1",
"@rspack/core": "2.1.8",
"@rspack/dev-server": "^2.2.0",
"@rsdoctor/rspack-plugin": "1.6.3",
"@rspack/core": "2.2.1",
"@rspack/dev-server": "^2.2.1",
"@swc/helpers": "^0.5.23",
"address": "^2.0.2",
"chalk": "^5.3.0",
Expand All @@ -126,15 +126,15 @@
"fs-extra": "11.3.6",
"glob": "11.1.0",
"gzip-size": "7.0.0",
"html-webpack-plugin": "5.6.7",
"html-webpack-plugin": "5.6.8",
"http-proxy-middleware": "^3.0.5",
"jiti": "2.6.1",
"less-loader": "^12.2.0",
"open": "10.2.0",
"sass-embedded": "1.93.2",
"sass-loader": "17.0.0",
"serve-static": "2.2.0",
"ts-checker-rspack-plugin": "^1.6.0",
"ts-checker-rspack-plugin": "^1.6.1",
"typescript-plugin-css-modules": "5.2.0",
"webpack-bundle-analyzer": "4.10.2"
}
Expand Down
7 changes: 5 additions & 2 deletions packages/cli/src/store/rspack/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ class RspackCommon {
...defaultCacheBase,
type: 'persistent',
maxAge: 7 * 24 * 60 * 60,
maxVersions: 3,
}
} else {
defaultCache = {
Expand All @@ -48,7 +47,11 @@ class RspackCommon {
}
}
if (typeof this.store.empConfig.cache === 'object') {
defaultCache = this.store.deepAssign(defaultCache, this.store.empConfig.cache)
const cacheOptions = {...this.store.empConfig.cache}
if ('maxVersions' in cacheOptions) {
delete cacheOptions.maxVersions
}
defaultCache = this.store.deepAssign(defaultCache, cacheOptions)
}
// console.log('defaultCache', defaultCache)
return defaultCache
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/test/rsdoctor-plugin-shape.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ try {
[path.join(repoRoot, 'packages/cli/bin/emp.js'), 'build', '--env', 'prod', '--clearLog', 'false'],
{cwd: configuredFixture, env: {...process.env, NODE_ENV: '', ENV: ''}, maxBuffer: 1024 * 1024 * 10},
)
assert.match(`${stdout}\n${stderr}`, /Rsdoctor v1\.6\.1/)
assert.match(`${stdout}\n${stderr}`, /Rsdoctor v1\.6\.3/)
const reportManifest = await stat(path.join(configuredFixture, 'custom-rsdoctor-report/.rsdoctor/manifest.json'))
assert.ok(reportManifest.isFile() && reportManifest.size > 0, 'expected Rsdoctor report manifest')
} finally {
Expand Down
10 changes: 5 additions & 5 deletions packages/cli/test/rspack2-features-shape.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const loadConfigForFixture = async fixtureRoot => {

{
const {rspack} = await import(`file://${path.join(repoRoot, 'packages/cli/dist/index.js')}`)
assert.equal(rspack.rspackVersion, '2.1.8')
assert.equal(rspack.rspackVersion, '2.2.1')
}

{
Expand Down Expand Up @@ -161,7 +161,7 @@ const loadConfigForFixture = async fixtureRoot => {

{
const config = await loadConfigForFixture(
await createFixture('rspack21-options', {
await createFixture('rspack22-options', {
appSrc: 'src',
appEntry: 'index.ts',
cache: {
Expand All @@ -184,12 +184,12 @@ const loadConfigForFixture = async fixtureRoot => {
assert.equal(config.experiments.sourceImport, true)
assert.equal(config.cache.type, 'persistent')
assert.equal(config.cache.maxAge, 1000 * 60 * 60)
assert.equal(config.cache.maxVersions, 2)
assert.equal(config.cache.maxVersions, undefined)
}

{
const config = await loadConfigForFixture(
await createFixture('rspack21-defaults', {
await createFixture('rspack22-defaults', {
appSrc: 'src',
appEntry: 'index.ts',
}),
Expand All @@ -198,6 +198,6 @@ const loadConfigForFixture = async fixtureRoot => {
assert.equal(config.module.parser.javascript.createRequire, true)
assert.equal(config.cache.type, 'persistent')
assert.equal(config.cache.maxAge, 7 * 24 * 60 * 60)
assert.equal(config.cache.maxVersions, 3)
assert.equal(config.cache.maxVersions, undefined)
assert.equal(config.experiments.sourceImport, undefined)
}
10 changes: 5 additions & 5 deletions packages/emp-share/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,14 +128,14 @@
},
"author": "Ken",
"dependencies": {
"@module-federation/rspack": "^2.8.2",
"@module-federation/runtime": "^2.8.2",
"@module-federation/runtime-tools": "^2.8.2",
"@module-federation/sdk": "^2.8.2",
"@module-federation/rspack": "^2.9.0",
"@module-federation/runtime": "^2.9.0",
"@module-federation/runtime-tools": "^2.9.0",
"@module-federation/sdk": "^2.9.0",
"core-js": "^3.46.0"
},
"devDependencies": {
"@empjs/cli": "workspace:*",
"@swc/core": "^1.15.47"
"@swc/core": "^1.16.1"
}
}
2 changes: 1 addition & 1 deletion packages/emp-share/test/module-federation-deps.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {readFileSync} from 'node:fs'

const packageJson = JSON.parse(readFileSync(new URL('../package.json', import.meta.url), 'utf8'))

const expectedVersion = '^2.8.2'
const expectedVersion = '^2.9.0'
const expectedDeps = [
'@module-federation/rspack',
'@module-federation/runtime',
Expand Down
2 changes: 1 addition & 1 deletion packages/rslib-presets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
".": "./index.mjs"
},
"dependencies": {
"@rslib/core": "1.0.0-beta.2"
"@rslib/core": "1.0.0-rc.2"
}
}
Loading