Skip to content
Open
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
8 changes: 8 additions & 0 deletions .changeset/funky-turkeys-hear.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@alfalab/scripts-modules': major
'@alfalab/scripts-server': major
'@alfalab/client-event-bus': major
'arui-scripts': major
---

обновление зависимостей
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
"packages/*"
],
"devDependencies": {
"@changesets/changelog-github": "^0.4.8",
"@changesets/cli": "^2.26.2",
"@changesets/changelog-github": "^0.7.0",
"@changesets/cli": "^2.31.0",
"arui-presets-lint": "8.8.1",
"conventional-changelog-cli": "3.0.0",
"turbo": "2.9.14"
"turbo": "2.10.4"
},
"scripts": {
"publish-packages": "yarn test && changeset version && yarn npm-publish",
Expand Down
14 changes: 7 additions & 7 deletions packages/arui-scripts-modules/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,18 @@
},
"devDependencies": {
"@testing-library/dom": "^10.4.1",
"@testing-library/react": "^16.3.0",
"@testing-library/react": "^16.3.2",
"@types/react": "18.3.24",
"@types/uuid": "^9.0.5",
"jest": "28.1.3",
"jest-environment-jsdom": "^29.6.2",
"@types/uuid": "^9.0.8",
"jest": "29.7.0",
"jest-environment-jsdom": "^29.7.0",
"react": "18.3.1",
"react-dom": "18.3.1",
"ts-jest": "28.0.8",
"typescript": "6.0.2"
"typescript": "6.0.3"
},
"dependencies": {
"abortcontroller-polyfill": "^1.7.5",
"uuid": "^9.0.1"
"abortcontroller-polyfill": "^1.7.8",
"uuid": "^14.0.1"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ describe('executeModuleFactory', () => {
expect(result).toBe('result');
});

it('should throw an error when module has no default export, factory field or is a function', () => {
it('should throw an error when module has no default export, factory field or is a function', async () => {
const mockModule = {};

const res = executeModuleFactory(
Expand All @@ -81,6 +81,6 @@ describe('executeModuleFactory', () => {
'runParams',
);

expect(res).rejects.toThrowError();
await expect(res).rejects.toThrow();
});
});
8 changes: 4 additions & 4 deletions packages/arui-scripts-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@
},
"devDependencies": {
"@alfalab/scripts-modules": "workspace:*",
"@types/express": "^4.17.17",
"@types/express": "^4.17.25",
"@types/hapi16": "npm:@types/hapi@16.1.12",
"@types/hapi20": "npm:@types/hapi__hapi@20",
"express": "^4.20.0",
"jest": "28.1.3",
"express": "^4.22.2",
"jest": "30.4.2",
"ts-jest": "28.0.8",
"typescript": "6.0.2"
"typescript": "6.0.3"
},
"peerDependencies": {
"@hapi/hapi": ">20.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ describe('readAssetsManifest', () => {
(readFile as unknown as jest.Mock).mockImplementationOnce(() => {
throw new Error('File not found');
});
await expect(readAssetsManifest(['vendor', 'main'])).rejects.toThrowError();
await expect(readAssetsManifest(['vendor', 'main'])).rejects.toThrow();
});

it('should return js and css assets', async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ describe('createGetModulesMethod', () => {

await expect(
handler({ moduleId: 'test', hostAppId: 'test', params: undefined }),
).rejects.toThrowError('Module test not found');
).rejects.toThrow('Module test not found');
});

it('should return correct response for compat module', async () => {
Expand Down Expand Up @@ -56,7 +56,7 @@ describe('createGetModulesMethod', () => {
appName: 'module-app-name',
});

expect(getModuleState).toBeCalledWith({ moduleId: 'test', hostAppId: 'test' });
expect(getModuleState).toHaveBeenCalledWith({ moduleId: 'test', hostAppId: 'test' });
});

it('should return correct response for default module', async () => {
Expand Down Expand Up @@ -88,6 +88,6 @@ describe('createGetModulesMethod', () => {
appName: 'module-app-name',
});

expect(getModuleState).toBeCalledWith({ moduleId: 'test', hostAppId: 'test' });
expect(getModuleState).toHaveBeenCalledWith({ moduleId: 'test', hostAppId: 'test' });
});
});
132 changes: 66 additions & 66 deletions packages/arui-scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,38 +22,38 @@
"bin": "./build/bin/index.js",
"dependencies": {
"@alfalab/postcss-custom-properties": "^9.1.2",
"@babel/core": "7.22.10",
"@babel/plugin-proposal-decorators": "^7.23.7",
"@babel/plugin-proposal-export-default-from": "^7.23.3",
"@babel/core": "7.29.7",
"@babel/plugin-proposal-decorators": "7.29.7",
"@babel/plugin-proposal-export-default-from": "7.29.7",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-transform-class-properties": "^7.23.3",
"@babel/plugin-transform-export-namespace-from": "^7.23.4",
"@babel/plugin-transform-modules-commonjs": "7.22.5",
"@babel/plugin-transform-nullish-coalescing-operator": "^7.23.4",
"@babel/plugin-transform-numeric-separator": "^7.23.4",
"@babel/plugin-transform-object-rest-spread": "^7.23.4",
"@babel/plugin-transform-optional-chaining": "^7.23.4",
"@babel/plugin-transform-private-methods": "^7.23.3",
"@babel/plugin-transform-private-property-in-object": "^7.23.4",
"@babel/plugin-transform-proto-to-assign": "^7.23.3",
"@babel/plugin-transform-react-constant-elements": "^7.23.3",
"@babel/plugin-transform-react-inline-elements": "^7.23.3",
"@babel/plugin-transform-runtime": "^7.23.7",
"@babel/preset-env": "^7.23.8",
"@babel/preset-react": "^7.23.3",
"@babel/preset-typescript": "^7.23.3",
"@babel/runtime": "^7.26.10",
"@module-federation/runtime-tools": "^2.0.0",
"@babel/plugin-transform-class-properties": "7.29.7",
"@babel/plugin-transform-export-namespace-from": "7.29.7",
"@babel/plugin-transform-modules-commonjs": "7.29.7",
"@babel/plugin-transform-nullish-coalescing-operator": "7.29.7",
"@babel/plugin-transform-numeric-separator": "7.29.7",
"@babel/plugin-transform-object-rest-spread": "7.29.7",
"@babel/plugin-transform-optional-chaining": "7.29.7",
"@babel/plugin-transform-private-methods": "7.29.7",
"@babel/plugin-transform-private-property-in-object": "7.29.7",
"@babel/plugin-transform-proto-to-assign": "7.29.7",
"@babel/plugin-transform-react-constant-elements": "7.29.7",
"@babel/plugin-transform-react-inline-elements": "7.29.7",
"@babel/plugin-transform-runtime": "7.29.7",
"@babel/preset-env": "7.29.7",
"@babel/preset-react": "7.29.7",
"@babel/preset-typescript": "7.29.7",
"@babel/runtime": "7.29.7",
"@module-federation/runtime-tools": "^2.7.0",
"@pmmmwh/react-refresh-webpack-plugin": "0.6.2",
"@rsdoctor/rspack-plugin": "1.5.9",
"@rspack/cli": "2.0.0",
"@rspack/core": "2.0.0",
"@rspack/dev-server": "2.0.0",
"@rspack/plugin-react-refresh": "2.0.0",
"@swc/core": "1.15.1",
"@rsdoctor/rspack-plugin": "1.5.18",
"@rspack/cli": "2.1.3",
"@rspack/core": "2.1.3",
"@rspack/dev-server": "2.1.0",
"@rspack/plugin-react-refresh": "2.0.2",
"@swc/core": "1.15.43",
"@swc/jest": "0.2.39",
"assets-webpack-plugin": "7.1.1",
"autoprefixer": "^10.3.16",
"autoprefixer": "^10.5.2",
"babel-core": "^7.0.0-bridge.0",
"babel-jest": "28.1.3",
"babel-loader": "9.2.1",
Expand All @@ -62,25 +62,25 @@
"babel-plugin-transform-react-remove-prop-types": "0.4.24",
"brotli-dict": "^1.1.4",
"case-sensitive-paths-webpack-plugin": "2.4.0",
"chalk": "^2.4.2",
"chalk": "^5.6.2",
"compression-webpack-plugin": "9.2.0",
"core-js": "3.32.0",
"css-loader": "6.8.1",
"css-minimizer-webpack-plugin": "5.0.0",
"core-js": "3.49.0",
"css-loader": "6.11.0",
"css-minimizer-webpack-plugin": "5.0.1",
"expose-loader": "3.1.0",
"filesize": "^6.4.0",
"fs-extra": "6.0.1",
"filesize": "^11.0.22",
"fs-extra": "11.3.6",
"get-port": "7.2.0",
"html-webpack-plugin": "^5.6.0",
"image-minimizer-webpack-plugin": "^3.8.3",
"imagemin": "^8.0.1",
"html-webpack-plugin": "^5.6.7",
"image-minimizer-webpack-plugin": "^5.0.0",
"imagemin": "^9.0.1",
"imagemin-svgo": "^12.0.0",
"jest": "^29.7.0",
"jest-config": "^29.7.0",
"jest-resolve": "^29.7.0",
"jest-snapshot-serializer-class-name-to-string": "1.0.0",
"lodash.merge": "4.6.2",
"mini-css-extract-plugin": "2.7.6",
"mini-css-extract-plugin": "2.10.2",
"mini-svg-data-uri": "^1.4.4",
"null-loader": "0.1.1",
"postcss": "^8.5.10",
Expand All @@ -97,54 +97,54 @@
"postcss-inherit": "^4.0.0",
"postcss-loader": "^7.0.0",
"postcss-media-query-parser": "^0.2.3",
"postcss-mixins": "^9.0.0",
"postcss-nested": "^6.0.0",
"postcss-omit-import-tilde": "^1.0.0",
"postcss-mixins": "^9.0.4",
"postcss-nested": "^6.2.0",
"postcss-omit-import-tilde": "^1.0.1",
"postcss-remove-root": "^0.0.2",
"postcss-strip-units": "^2.0.0",
"postcss-url": "^10.0.0",
"postcss-strip-units": "^2.0.1",
"postcss-url": "^10.1.4",
"react-refresh": "0.10.0",
"react-refresh-typescript": "2.0.2",
"react-refresh-typescript": "2.0.12",
"rimraf": "^2.7.1",
"rspack-manifest-plugin": "5.2.1",
"run-script-webpack-plugin": "0.0.11",
"semver": "^7.5.4",
"serialize-javascript": "^7.0.5",
"shelljs": "0.8.5",
"strip-ansi": "6.0.1",
"style-loader": "3.3.3",
"swc-loader": "^0.2.6",
"rspack-manifest-plugin": "5.2.2",
"run-script-webpack-plugin": "0.2.3",
"semver": "^7.8.5",
"serialize-javascript": "^7.0.7",
"shelljs": "0.10.0",
"strip-ansi": "7.2.0",
"style-loader": "3.3.4",
"swc-loader": "^0.2.7",
"swc-plugin-coverage-instrument": "0.0.32",
"tar": "7.5.16",
"terser-webpack-plugin": "5.3.14",
"ts-checker-rspack-plugin": "^1.3.0",
"ts-jest": "29.1.0",
"ts-loader": "9.4.4",
"tar": "7.5.20",
"terser-webpack-plugin": "5.6.1",
"ts-checker-rspack-plugin": "^1.5.2",
"ts-jest": "29.4.11",
"ts-loader": "9.6.2",
"ts-node": "10.9.2",
"vite-tsconfig-paths": "^6.1.1",
"vitest": "^4.1.5",
"webpack-bundle-analyzer": "4.10.2",
"vitest": "^4.1.10",
"webpack-bundle-analyzer": "5.3.0",
"webpack-deduplication-plugin": "^0.0.8",
"webpack-node-externals": "3.0.0"
},
"devDependencies": {
"@types/assets-webpack-plugin": "6.1.2",
"@types/case-sensitive-paths-webpack-plugin": "2.1.6",
"@types/assets-webpack-plugin": "7.1.6",
"@types/case-sensitive-paths-webpack-plugin": "2.1.9",
"@types/compression-webpack-plugin": "4.0.1",
"@types/fs-extra": "^9.0.13",
"@types/jest": "^29.5.14",
"@types/lodash.merge": "^4.6.7",
"@types/node": "^20.19.0",
"@types/lodash.merge": "^4.6.9",
"@types/node": "^22.20.1",
"@types/postcss-media-query-parser": "0.2.4",
"@types/semver": "^7.5.0",
"@types/semver": "^7.7.1",
"@types/serialize-javascript": "^5.0.4",
"@types/shelljs": "^0.8.12",
"@types/tar": "^4.0.5",
"@types/webpack-bundle-analyzer": "4.7.0",
"@types/webpack-node-externals": "^3.0.0",
"babel-plugin-transform-import-meta": "^2.3.3",
"type-fest": "2.19.0",
"typescript": "6.0.2"
"type-fest": "5.8.0",
"typescript": "6.0.3"
},
"engines": {
"node": "^20.19.0 || >=22.12.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import path from 'path';

import { type Stats } from '@rspack/core';
import chalk from 'chalk';
import filesize from 'filesize';
import { filesize } from 'filesize';

import { configs } from '../../configs/app-configs';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ describe('update-with-env', () => {

expect(() => {
updateWithEnv(baseConfig);
}).toThrowError();
}).toThrow();
});

it('should update config keys with values from env', () => {
Expand Down
4 changes: 3 additions & 1 deletion packages/arui-scripts/src/configs/jest/babel-transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@
const babelJest = require('babel-jest');
const babelPresets = require('../babel-server');

module.exports = babelJest.createTransformer(babelPresets.config);
const transformer = babelJest.createTransformer(babelPresets.config);

module.exports = /** @type {import('@jest/transform').SyncTransformer} */ (transformer);
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ it('should throw an error when overrides is not a function', () => {

const { applyOverrides } = require('../apply-overrides');

expect(() => applyOverrides('foo', {})).toThrowError(TypeError);
expect(() => applyOverrides('foo', {})).toThrow(TypeError);
});

it('should call override function and update config', () => {
Expand Down
6 changes: 3 additions & 3 deletions packages/client-event-bus/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@
"devDependencies": {
"@testing-library/dom": "^10.4.1",
"@testing-library/react": "^16.3.2",
"@types/jest": "^23.3.14",
"@types/jest": "^29.5.14",
"@types/react": "18",
"@types/react-dom": "18.3.7",
"jest": "28.1.3",
"jest": "29.7.0",
"react": "18.3.1",
"react-dom": "18.3.1",
"ts-jest": "28.0.8",
"typescript": "6.0.2"
"typescript": "6.0.3"
}
}
22 changes: 11 additions & 11 deletions packages/example-modules/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,25 @@
"@alfalab/scripts-modules": "workspace:*",
"@alfalab/scripts-server": "workspace:*",
"arui-scripts": "workspace:*",
"body-parser": "^1.20.3",
"express": "^4.20.0",
"body-parser": "^1.20.6",
"express": "^4.22.2",
"lodash": "^4.18.1",
"react": "18.3.1",
"react-dom": "18.3.1"
},
"devDependencies": {
"@types/enzyme": "^3.10.13",
"@types/express": "^4.17.17",
"@types/jest": "^23.3.14",
"@types/lodash": "^4.14.197",
"@types/node": "^14.18.54",
"@types/enzyme": "^3.10.19",
"@types/express": "^4.17.25",
"@types/jest": "^30.0.0",
"@types/lodash": "^4.17.24",
"@types/node": "^14.18.63",
"@types/react": "18.3.24",
"@types/react-dom": "18.3.7",
"@types/webpack-env": "^1.18.1",
"@types/webpack-env": "^1.18.8",
"enzyme": "3.11.0",
"enzyme-adapter-react-16": "^1.15.4",
"jest": "28.1.3",
"enzyme-adapter-react-16": "^1.15.8",
"jest": "30.4.2",
"ts-jest": "28.0.8",
"typescript": "6.0.2"
"typescript": "6.0.3"
}
}
Loading
Loading