Skip to content

Conversation

@AlessioGr
Copy link
Member

@AlessioGr AlessioGr commented Nov 7, 2024

This further reduces the amount of dependencies installed by payload. Special thanks to @benmccann for this PR (bcherny/json-schema-to-typescript#639) !

json-schema-to-typescript before this PR (15.0.1):

CleanShot 2024-11-07 at 15 35 53@2x

14mb, 37 dependencies

json-schema-to-typescript after this PR (15.0.3):

CleanShot 2024-11-07 at 15 36 08@2x

11 MB, 14 dependencies

This PR also upgrades:

  • console-table-printer
  • croner
  • get-tsconfig
  • jose
  • pino-pretty
  • ts-essentials
  • tsx

@socket-security
Copy link

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@types/html-minifier-terser@6.1.0 None 0 9.56 kB types
npm/accepts@1.3.8 None 0 16.8 kB dougwilson
npm/autoprefixer@10.4.16 environment Transitive: filesystem +1 261 kB ai
npm/bytes@3.0.0 None 0 10.8 kB dougwilson
npm/compressible@2.0.18 None 0 7.36 kB dougwilson
npm/compression@1.7.4 None 0 23.3 kB dougwilson
npm/connect-history-api-fallback@1.6.0 None 0 11.5 kB bripkens
npm/css-blank-pseudo@6.0.0 None 0 54.5 kB alaguna
npm/css-has-pseudo@6.0.0 None 0 195 kB alaguna
npm/css-loader@5.2.7 None 0 102 kB evilebottnawi
npm/css-minimizer-webpack-plugin@5.0.1 eval 0 81.9 kB evilebottnawi
npm/css-prefers-color-scheme@9.0.0 None 0 42.1 kB alaguna
npm/cssdb@7.8.0 None 0 136 kB romainmenke
npm/cssnano@6.0.1 None 0 7.01 kB ludovicofischer
npm/debug@2.6.9 environment, filesystem, network 0 51.2 kB tootallnate
npm/file-loader@6.2.0 None 0 38.1 kB evilebottnawi
npm/find-node-modules@2.1.3 None 0 4.58 kB callumacrae
npm/findup-sync@4.0.0 filesystem 0 7.12 kB phated
npm/html-minifier-terser@6.1.0 None 0 99.6 kB sibiraj-s
npm/html-webpack-plugin@5.5.3 filesystem, unsafe 0 119 kB evilebottnawi
npm/icss-utils@5.1.0 None 0 10 kB evilebottnawi
npm/jest-worker@29.7.0 environment, shell 0 90.8 kB simenb
npm/loader-utils@2.0.4 None 0 36.3 kB evilebottnawi
npm/merge@2.1.1 None 0 7 kB yeikos
npm/mini-css-extract-plugin@1.6.2 unsafe 0 90.8 kB evilebottnawi
npm/nanoid@3.3.6 None 0 21.7 kB ai
npm/on-headers@1.0.2 None 0 7.54 kB dougwilson
npm/path-browserify@1.0.1 None 0 54.3 kB goto-bus-stop
npm/picocolors@1.0.0 environment 0 5.66 kB alexeyraspopov
npm/postcss-attribute-case-insensitive@6.0.2 None +1 198 kB alaguna
npm/postcss-clamp@4.1.0 None 0 17.2 kB polemius
npm/postcss-color-functional-notation@6.0.2 None 0 22.9 kB romainmenke
npm/postcss-color-hex-alpha@9.0.2 None 0 11 kB alaguna
npm/postcss-color-rebeccapurple@9.0.1 None 0 9.98 kB romainmenke
npm/postcss-custom-media@10.0.2 None 0 36.6 kB alaguna
npm/postcss-custom-properties@13.3.2 None 0 40.2 kB romainmenke
npm/postcss-custom-selectors@7.1.6 None 0 21.3 kB alaguna
npm/postcss-dir-pseudo-class@8.0.0 None 0 14.5 kB alaguna
npm/postcss-double-position-gradients@5.0.2 None 0 15.8 kB romainmenke
npm/postcss-focus-visible@9.0.0 None 0 13.3 kB alaguna
npm/postcss-focus-within@8.0.0 None 0 36.3 kB alaguna
npm/postcss-font-variant@5.0.0 None 0 8.18 kB semigradsky
npm/postcss-gap-properties@5.0.0 None 0 8.38 kB alaguna
npm/postcss-image-set-function@6.0.1 None 0 18.8 kB romainmenke
npm/postcss-initial@4.0.1 None 0 24.6 kB maximkoretskiy
npm/postcss-lab-function@6.0.7 None 0 20.7 kB romainmenke
npm/postcss-loader@6.2.1 eval, unsafe 0 48.3 kB evilebottnawi
npm/postcss-logical@7.0.0 None 0 39.9 kB alaguna
npm/postcss-modules-extract-imports@3.0.0 None 0 12.2 kB evilebottnawi
npm/postcss-modules-local-by-default@4.0.3 None 0 21 kB evilebottnawi
npm/postcss-modules-scope@3.0.0 None 0 15 kB evilebottnawi
npm/postcss-modules-values@4.0.0 None 0 9.66 kB evilebottnawi
npm/postcss-nesting@12.0.1 None 0 38.9 kB romainmenke
npm/postcss-opacity-percentage@2.0.0 None 0 5.17 kB dreamseer
npm/postcss-overflow-shorthand@5.0.0 None 0 8.5 kB alaguna
npm/postcss-preset-env@9.0.0 None +1 160 kB alaguna
npm/pretty-error@4.0.0 None 0 58.9 kB ariaminaei
npm/safe-buffer@5.1.2 None 0 31.7 kB feross
npm/sass-loader@12.6.0 environment +1 110 kB evilebottnawi
npm/semver@7.5.4 None 0 93.4 kB npm-cli-ops
npm/serialize-javascript@6.0.1 None 0 16.8 kB okuryu
npm/source-map-js@1.0.2 None 0 148 kB 7rulnik
npm/style-loader@2.0.0 None 0 57.7 kB evilebottnawi
npm/swc-loader@0.2.3 None 0 7.67 kB kdy1
npm/swc-minify-webpack-plugin@2.1.1 None 0 22.3 kB guoyunhe
npm/terser-webpack-plugin@5.3.9 None +1 252 kB evilebottnawi
npm/url-loader@4.1.1 None 0 29.6 kB evilebottnawi
npm/vary@1.1.2 None 0 8.75 kB dougwilson
npm/webpack-bundle-analyzer@4.9.1 environment, filesystem, network +1 1.76 MB valscion
npm/webpack-cli@4.10.0 environment, filesystem Transitive: shell +2 335 kB evilebottnawi
npm/webpack-dev-middleware@6.0.1 filesystem 0 77.1 kB evilebottnawi
npm/webpack-hot-middleware@2.25.4 None 0 32.8 kB evilebottnawi
npm/webpack-sources@1.4.3 None 0 36.7 kB sokra
npm/webpack@5.89.0 environment, filesystem, network, unsafe +1 4.84 MB thelarkinn

🚮 Removed packages: npm/@aws-crypto/crc32@3.0.0, npm/@aws-crypto/ie11-detection@3.0.0, npm/@aws-crypto/sha256-browser@3.0.0, npm/@aws-crypto/supports-web-crypto@3.0.0, npm/@aws-crypto/util@3.0.0, npm/@aws-sdk/client-cognito-identity@3.428.0, npm/@aws-sdk/client-sso@3.428.0, npm/@aws-sdk/client-sts@3.428.0, npm/@aws-sdk/credential-provider-cognito-identity@3.428.0, npm/@aws-sdk/credential-provider-env@3.428.0, npm/@aws-sdk/credential-provider-http@3.428.0, npm/@aws-sdk/credential-provider-ini@3.428.0, npm/@aws-sdk/credential-provider-node@3.428.0, npm/@aws-sdk/credential-provider-process@3.428.0, npm/@aws-sdk/credential-provider-sso@3.428.0, npm/@aws-sdk/credential-provider-web-identity@3.428.0, npm/@aws-sdk/credential-providers@3.428.0, npm/@aws-sdk/middleware-host-header@3.428.0, npm/@aws-sdk/middleware-logger@3.428.0, npm/@aws-sdk/middleware-recursion-detection@3.428.0, npm/@aws-sdk/middleware-sdk-sts@3.428.0, npm/@aws-sdk/middleware-signing@3.428.0, npm/@aws-sdk/middleware-user-agent@3.428.0, npm/@aws-sdk/region-config-resolver@3.428.0, npm/@aws-sdk/token-providers@3.428.0, npm/@aws-sdk/types@3.428.0, npm/@aws-sdk/util-endpoints@3.428.0, npm/@aws-sdk/util-locate-window@3.310.0, npm/@aws-sdk/util-user-agent-browser@3.428.0, npm/@aws-sdk/util-user-agent-node@3.428.0, npm/@babel/code-frame@7.22.13, npm/@babel/helper-module-imports@7.22.15, npm/@babel/helper-string-parser@7.22.5, npm/@babel/helper-validator-identifier@7.22.20, npm/@babel/highlight@7.22.20, npm/@babel/types@7.23.0, npm/@bcherny/json-schema-ref-parser@9.0.9, npm/@csstools/cascade-layer-name-parser@1.0.5, npm/@csstools/color-helpers@3.0.2, npm/@csstools/css-calc@1.1.4, npm/@csstools/css-color-parser@1.4.0, npm/@csstools/css-parser-algorithms@2.3.2, npm/@csstools/media-query-list-parser@2.1.5, npm/@csstools/selector-specificity@3.0.0, npm/@date-io/core@2.17.0, npm/@date-io/date-fns@2.16.0, npm/@dnd-kit/accessibility@3.0.1, npm/@emotion/babel-plugin@11.11.0, npm/@emotion/css@11.11.2, npm/@emotion/hash@0.9.1, npm/@emotion/memoize@0.8.1, npm/@emotion/react@11.11.1, npm/@emotion/serialize@1.1.2, npm/@emotion/sheet@1.2.2, npm/@emotion/unitless@0.8.1, npm/@emotion/use-insertion-effect-with-fallbacks@1.0.1, npm/@emotion/utils@1.2.1, npm/@emotion/weak-memoize@0.3.1, npm/@eslint-community/eslint-utils@4.4.0, npm/@eslint-community/regexpp@4.9.1, npm/@eslint/eslintrc@2.1.2, npm/@eslint/js@8.51.0, npm/@faceless-ui/modal@2.0.1, npm/@faceless-ui/scroll-info@1.3.0, npm/@faceless-ui/window-info@2.1.1, npm/@floating-ui/core@1.5.0, npm/@floating-ui/dom@1.5.3, npm/@floating-ui/utils@0.1.6, npm/@hapi/hoek@9.3.0, npm/@hapi/topo@5.1.0, npm/@humanwhocodes/config-array@0.11.11, npm/@humanwhocodes/object-schema@1.2.1, npm/@jest/schemas@29.6.3, npm/@jest/types@29.6.3, npm/@jridgewell/gen-mapping@0.3.3, npm/@jridgewell/resolve-uri@3.1.1, npm/@jridgewell/set-array@1.1.2, npm/@jridgewell/source-map@0.3.5, npm/@jridgewell/sourcemap-codec@1.4.15, npm/@juggle/resize-observer@3.4.0, npm/@monaco-editor/react@4.5.1, npm/@payloadcms/db-mongodb@1.0.3, npm/@payloadcms/eslint-config@0.0.1, npm/@payloadcms/plugin-redirects@1.0.1, npm/@payloadcms/richtext-slate@1.0.3, npm/@polka/url@1.0.0-next.23, npm/@popperjs/core@2.11.8, npm/@sideway/address@4.1.4, npm/@sideway/formula@3.0.1, npm/@sideway/pinpoint@2.0.0, npm/@sinclair/typebox@0.27.8, npm/@smithy/abort-controller@2.0.11, npm/@smithy/config-resolver@2.0.14, npm/@smithy/credential-provider-imds@2.0.16, npm/@smithy/eventstream-codec@2.0.11, npm/@smithy/fetch-http-handler@2.2.3, npm/@smithy/hash-node@2.0.11, npm/@smithy/invalid-dependency@2.0.11, npm/@smithy/is-array-buffer@2.0.0, npm/@smithy/middleware-content-length@2.0.13, npm/@smithy/middleware-endpoint@2.1.1, npm/@smithy/middleware-retry@2.0.16, npm/@smithy/middleware-serde@2.0.11, npm/@smithy/middleware-stack@2.0.5, npm/@smithy/node-config-provider@2.1.1, npm/@smithy/node-http-handler@2.1.7, npm/@smithy/protocol-http@3.0.7, npm/@smithy/querystring-builder@2.0.11, npm/@smithy/querystring-parser@2.0.11, npm/@smithy/service-error-classification@2.0.4, npm/@smithy/signature-v4@2.0.11, npm/@smithy/smithy-client@2.1.11, npm/@smithy/types@2.3.5, npm/@smithy/url-parser@2.0.11, npm/@smithy/util-base64@2.0.0, npm/@smithy/util-body-length-browser@2.0.0, npm/@smithy/util-body-length-node@2.1.0, npm/@smithy/util-buffer-from@2.0.0, npm/@smithy/util-config-provider@2.0.0, npm/@smithy/util-defaults-mode-browser@2.0.15, npm/@smithy/util-defaults-mode-node@2.0.19, npm/@smithy/util-hex-encoding@2.0.0, npm/@smithy/util-middleware@2.0.4, npm/@smithy/util-retry@2.0.4, npm/@smithy/util-stream@2.0.16

View full report↗︎

@socket-security
Copy link

🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎

To accept the risk, merge this PR and you will not be notified again.

Alert Package NoteCI
Protestware or potentially unwanted behavior npm/es5-ext@0.10.62
  • Note: This package prints a protestware console message on install regarding Ukraine for users with Russian language locale
⚠︎
Protestware or potentially unwanted behavior npm/es5-ext@0.10.62
  • Note: The script attempts to run a local post-install script, which could potentially contain malicious code. The error handling suggests that it is designed to fail silently, which is a common tactic in malicious scripts.
⚠︎

View full report↗︎

Next steps

What is protestware?

This package is a joke, parody, or includes undocumented or hidden behavior unrelated to its primary function.

Consider that consuming this package may come along with functionality unrelated to its primary purpose.

Take a deeper look at the dependency

Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev.

Remove the package

If you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency.

Mark a package as acceptable risk

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of ecosystem/package-name@version specifiers. e.g. @SocketSecurity ignore npm/foo@1.0.0 or ignore all packages with @SocketSecurity ignore-all

  • @SocketSecurity ignore npm/es5-ext@0.10.62

@AlessioGr AlessioGr enabled auto-merge (squash) November 7, 2024 22:52
@AlessioGr AlessioGr merged commit 0cd83f0 into beta Nov 7, 2024
60 checks passed
@AlessioGr AlessioGr deleted the perf/upgrade-json-schema-to-typescript branch November 7, 2024 22:54
@github-actions
Copy link
Contributor

🚀 This is included in version v3.0.0-beta.127

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants