Skip to content

Commit

Permalink
chore: update packages 2024-12-04 (#4430)
Browse files Browse the repository at this point in the history
  • Loading branch information
brunozoric authored Dec 5, 2024
1 parent 5a5a2e3 commit be3868d
Show file tree
Hide file tree
Showing 63 changed files with 2,719 additions and 2,882 deletions.
2 changes: 1 addition & 1 deletion apps/admin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"react-dom": "18.2.0",
"regenerator-runtime": "^0.13.5",
"theme": "^1.0.0",
"tslib": "^2.4.0"
"tslib": "^2.8.1"
},
"devDependencies": {
"cross-env": "^5.2.1"
Expand Down
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,25 +30,25 @@
"devDependencies": {
"@babel/cli": "^7.25.9",
"@babel/code-frame": "^7.26.2",
"@babel/compat-data": "^7.26.2",
"@babel/compat-data": "^7.26.3",
"@babel/core": "^7.26.0",
"@babel/helper-define-polyfill-provider": "^0.6.3",
"@babel/helper-environment-visitor": "^7.24.7",
"@babel/parser": "^7.26.2",
"@babel/parser": "^7.26.3",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-object-rest-spread": "^7.20.7",
"@babel/plugin-proposal-throw-expressions": "^7.25.9",
"@babel/plugin-syntax-object-rest-spread": "^7.8.3",
"@babel/plugin-transform-modules-commonjs": "^7.25.9",
"@babel/plugin-transform-modules-commonjs": "^7.26.3",
"@babel/plugin-transform-runtime": "^7.25.9",
"@babel/preset-env": "^7.26.0",
"@babel/preset-react": "^7.25.9",
"@babel/preset-react": "^7.26.3",
"@babel/preset-typescript": "^7.26.0",
"@babel/register": "^7.25.9",
"@babel/runtime": "^7.26.0",
"@babel/template": "^7.25.9",
"@babel/traverse": "^7.25.9",
"@babel/types": "^7.26.0",
"@babel/traverse": "^7.26.3",
"@babel/types": "^7.26.3",
"@commitlint/cli": "^11.0.0",
"@commitlint/config-conventional": "^11.0.0",
"@grpc/grpc-js": "^1.11.1",
Expand All @@ -63,9 +63,10 @@
"@typescript-eslint/parser": "^5.5.0",
"adio": "^1.0.1",
"babel-jest": "29.7.0",
"babel-loader": "^9.2.1",
"babel-plugin-dynamic-import-node": "2.3.3",
"babel-plugin-macros": "3.1.0",
"babel-plugin-module-resolver": "^5.0.0",
"babel-plugin-module-resolver": "^5.0.2",
"chalk": "^4.1.0",
"cross-env": "^5.2.1",
"deepmerge": "^4.3.1",
Expand Down Expand Up @@ -111,12 +112,12 @@
"semver": "^7.6.3",
"ts-expect": "^1.3.0",
"ts-jest": "^29.1.2",
"ts-node": "^10.9.1",
"ts-node": "^10.9.2",
"typescript": "4.9.5",
"typescript-transform-paths": "^3.4.6",
"verdaccio": "^5.29.1",
"write-json-file": "^4.2.0",
"yargs": "^17.0.1"
"yargs": "^17.7.2"
},
"optionalDependencies": {
"fsevents": "^2.0.7"
Expand Down Expand Up @@ -243,7 +244,6 @@
"semver": "^7.6.3",
"@types/eslint": "8.2.1",
"xml2js": "0.6.2",
"yargs": "^17.3.1",
"lerna@8.1.2": "patch:lerna@npm%3A8.1.2#./.yarn/patches/lerna-npm-8.1.2-be48ad2329.patch",
"react-dnd": "^16.0.0",
"react-dnd-html5-backend": "^16.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/api-elasticsearch-tasks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"@webiny/project-utils": "0.0.0",
"rimraf": "^6.0.1",
"ttypescript": "^1.5.13",
"type-fest": "^2.19.0",
"type-fest": "^3.13.1",
"typescript": "4.9.5"
},
"publishConfig": {
Expand Down
2 changes: 1 addition & 1 deletion packages/api-file-manager-s3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"p-map": "4.0.0",
"p-reduce": "2.1.0",
"sanitize-filename": "^1.6.3",
"sharp": "0.32.6"
"sharp": "^0.32.6"
},
"devDependencies": {
"@types/node-fetch": "^2.6.1",
Expand Down
1 change: 0 additions & 1 deletion packages/api-form-builder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
"slugify": "^1.6.6"
},
"devDependencies": {
"@types/got": "^9.6.12",
"@types/json2csv": "^4.5.1",
"@types/node-fetch": "^2.6.1",
"@webiny/api-headless-cms": "0.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/api-headless-cms-ddb-es/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
},
"devDependencies": {
"@elastic/elasticsearch": "7.12.0",
"@types/jsonpack": "^1.1.0",
"@types/jsonpack": "^1.1.6",
"@webiny/api-dynamodb-to-elasticsearch": "0.0.0",
"@webiny/api-i18n": "0.0.0",
"@webiny/api-security": "0.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/api-headless-cms-ddb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"lodash": "^4.17.21"
},
"devDependencies": {
"@types/jsonpack": "^1.1.0",
"@types/jsonpack": "^1.1.6",
"@webiny/cli": "0.0.0",
"@webiny/plugins": "0.0.0",
"@webiny/project-utils": "0.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/api-headless-cms-es-tasks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"@webiny/utils": "0.0.0"
},
"devDependencies": {
"@faker-js/faker": "^8.4.1",
"@faker-js/faker": "^9.3.0",
"@webiny/api": "0.0.0",
"@webiny/api-i18n": "0.0.0",
"@webiny/api-security": "0.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/api-headless-cms-import-export/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"@webiny/project-utils": "0.0.0",
"@webiny/wcp": "0.0.0",
"adm-zip": "^0.5.14",
"aws-sdk-client-mock": "^4.0.1",
"aws-sdk-client-mock": "^4.1.0",
"graphql": "^15.8.0",
"ttypescript": "^1.5.13",
"typescript": "^4.7.4"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ export const createSizeSegments = (
): ISegment[] => {
const segmentSize =
typeof segmentSizeInput === "number" ? segmentSizeInput : bytes.parse(segmentSizeInput);
if (!segmentSize) {
return [];
}

const segments: ISegment[] = [];
let segmentIndex = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ import { createMultipartUploadHandlerAddResult } from "./MultipartUploadHandlerA
* Minimum we can send into the S3 is 5MB.
* We can modify to have this value bigger if required.
*/
const MIN_BUFFER_SIZE = bytes.parse("5MB");
const MIN_BUFFER_SIZE = bytes.parse("5MB") as number;

const getMinBufferSize = (minBufferSize?: IMultipartUploadHandlerParamsMinBufferSize): number => {
if (!minBufferSize) {
return MIN_BUFFER_SIZE;
}
const size = typeof minBufferSize === "number" ? minBufferSize : bytes.parse(minBufferSize);
if (size >= MIN_BUFFER_SIZE) {
if (size && size >= MIN_BUFFER_SIZE) {
return size;
}
return MIN_BUFFER_SIZE;
Expand Down
2 changes: 1 addition & 1 deletion packages/api-headless-cms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"dot-prop": "^6.0.1",
"graphql": "^15.7.2",
"graphql-tag": "^2.12.6",
"jsdom": "^24.0.0",
"jsdom": "^25.0.1",
"lodash": "^4.17.21",
"p-map": "^4.0.0",
"p-reduce": "^2.1.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/api-i18n/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@webiny/plugins": "0.0.0",
"@webiny/pubsub": "0.0.0",
"accept-language-parser": "^1.5.0",
"i18n-locales": "^0.0.2"
"i18n-locales": "^0.0.5"
},
"devDependencies": {
"@types/accept-language-parser": "^1.5.3",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/**
* Package i18n-locales does not have types.
*/
// @ts-expect-error
import localesList from "i18n-locales";

interface SearchLocaleCodesArgs {
Expand Down
2 changes: 1 addition & 1 deletion packages/api-log/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@webiny/plugins": "0.0.0",
"@webiny/tasks": "0.0.0",
"@webiny/utils": "0.0.0",
"zod": "^3.22.4"
"zod": "^3.23.8"
},
"devDependencies": {
"@webiny/cli": "0.0.0",
Expand Down
6 changes: 3 additions & 3 deletions packages/api-mailer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
"@webiny/pubsub": "0.0.0",
"crypto-js": "^4.2.0",
"lodash": "^4.17.21",
"nodemailer": "^6.9.12",
"nodemailer": "^6.9.16",
"zod": "^3.23.8"
},
"devDependencies": {
"@types/crypto-js": "^4.1.1",
"@types/nodemailer": "^6.4.4",
"@types/crypto-js": "^4.2.2",
"@types/nodemailer": "^6.4.17",
"@webiny/api-i18n": "0.0.0",
"@webiny/api-security": "0.0.0",
"@webiny/api-tenancy": "0.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/api-page-builder-import-export/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"load-json-file": "^6.2.0",
"lodash": "^4.17.21",
"node-fetch": "2.6.7",
"stream": "^0.0.2",
"stream": "^0.0.3",
"uniqid": "^5.4.0",
"yauzl": "^2.10.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/api-page-builder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"load-json-file": "^6.2.0",
"lodash": "^4.17.21",
"node-fetch": "2.6.7",
"stream": "^0.0.2",
"stream": "^0.0.3",
"uniqid": "^5.4.0",
"zod": "^3.23.8"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/api-record-locking/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"graphql": "^15.8.0",
"rimraf": "^6.0.1",
"ttypescript": "^1.5.13",
"type-fest": "^2.19.0",
"type-fest": "^3.13.1",
"typescript": "4.9.5"
},
"publishConfig": {
Expand Down
2 changes: 1 addition & 1 deletion packages/api-websockets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"@webiny/handler-aws": "0.0.0",
"@webiny/plugins": "0.0.0",
"@webiny/utils": "0.0.0",
"type-fest": "^2.19.0",
"type-fest": "^3.13.1",
"zod": "^3.23.8"
},
"devDependencies": {
Expand Down
8 changes: 4 additions & 4 deletions packages/app-admin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"graphlib": "^2.1.7",
"graphql": "^15.7.2",
"graphql-tag": "^2.12.6",
"is-hotkey": "^0.1.3",
"is-hotkey": "^0.2.0",
"lodash": "^4.17.21",
"mobx": "^6.9.0",
"mobx-react-lite": "^3.4.3",
Expand All @@ -64,9 +64,9 @@
},
"devDependencies": {
"@emotion/babel-plugin": "^11.11.0",
"@types/bytes": "^3.1.1",
"@types/graphlib": "^2.1.8",
"@types/is-hotkey": "^0.1.7",
"@types/bytes": "^3.1.4",
"@types/graphlib": "^2.1.12",
"@types/is-hotkey": "^0.1.10",
"@types/store": "^2.0.2",
"@webiny/cli": "0.0.0",
"@webiny/project-utils": "0.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/app-cognito-authenticator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"react-dom": "18.2.0"
},
"devDependencies": {
"@types/lodash": "^4.14.191",
"@types/lodash": "^4.17.13",
"@webiny/cli": "0.0.0",
"@webiny/project-utils": "0.0.0",
"rimraf": "^6.0.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/app-file-manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"graphql": "^15.7.2",
"graphql-tag": "^2.12.6",
"lodash": "^4.17.21",
"mime": "^2.4.2",
"mime": "^3.0.0",
"minimatch": "^5.1.6",
"mobx": "^6.9.0",
"mobx-react-lite": "^3.4.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/app-form-builder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
},
"devDependencies": {
"@emotion/babel-plugin": "^11.11.0",
"@types/gtag.js": "^0.0.12",
"@types/gtag.js": "^0.0.20",
"@types/json2csv": "^4.5.1",
"@types/react-google-recaptcha": "^1.1.2",
"@webiny/cli": "0.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/app-headless-cms-common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@emotion/babel-plugin": "^11.11.0",
"@webiny/cli": "0.0.0",
"@webiny/project-utils": "0.0.0",
"babel-plugin-module-resolver": "^5.0.0",
"babel-plugin-module-resolver": "^5.0.2",
"rimraf": "^6.0.1",
"ttypescript": "^1.5.12",
"typescript": "4.9.5"
Expand Down
2 changes: 1 addition & 1 deletion packages/app-headless-cms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
"@emotion/babel-plugin": "^11.11.0",
"@webiny/cli": "0.0.0",
"@webiny/project-utils": "0.0.0",
"babel-plugin-module-resolver": "^5.0.0",
"babel-plugin-module-resolver": "^5.0.2",
"rimraf": "^6.0.1",
"ttypescript": "^1.5.12",
"typescript": "4.9.5"
Expand Down
4 changes: 2 additions & 2 deletions packages/app-page-builder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"graphql-tag": "^2.12.6",
"history": "^5.3.0",
"invariant": "^2.2.4",
"is-hotkey": "^0.1.3",
"is-hotkey": "^0.2.0",
"lodash": "^4.17.21",
"medium-editor": "^5.23.3",
"mobx": "^6.9.0",
Expand Down Expand Up @@ -86,7 +86,7 @@
"devDependencies": {
"@emotion/babel-plugin": "^11.11.0",
"@types/aos": "^3.0.4",
"@types/is-hotkey": "^0.1.7",
"@types/is-hotkey": "^0.1.10",
"@types/pako": "^2.0.3",
"@types/platform": "^1.3.4",
"@types/react-images": "^0.5.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"warning": "^4.0.2"
},
"devDependencies": {
"@types/lodash": "^4.14.191",
"@types/lodash": "^4.17.13",
"@types/warning": "^3.0.0",
"@webiny/cli": "0.0.0",
"@webiny/project-utils": "0.0.0",
Expand Down
9 changes: 6 additions & 3 deletions packages/app/src/react-butterfiles/Files.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ export class Files extends React.Component<Props> {
type: "unsupportedFileType"
});
} else if (maxSize) {
if (file.size > bytes(maxSize)) {
const sizeAsBytes = bytes(maxSize);
if (sizeAsBytes && file.size > sizeAsBytes) {
errors.push({
id: generateId(),
index,
Expand All @@ -119,12 +120,14 @@ export class Files extends React.Component<Props> {
}

if (multiple) {
if (multipleMaxSize && multipleFileSize > bytes(multipleMaxSize)) {
const maxMultipleMaxSize = bytes(multipleMaxSize);

if (maxMultipleMaxSize && multipleMaxSize && multipleFileSize > maxMultipleMaxSize) {
errors.push({
id: generateId(),
type: "multipleMaxSizeExceeded",
multipleFileSize,
multipleMaxSize: bytes(multipleMaxSize)
multipleMaxSize: maxMultipleMaxSize
});
}

Expand Down
Loading

0 comments on commit be3868d

Please sign in to comment.