Skip to content

Conversation

samchon
Copy link
Owner

@samchon samchon commented Aug 10, 2025

This pull request updates the pnpm-lock.yaml file with a number of dependency upgrades, removals, and additions, primarily affecting packages related to jsdom and its ecosystem. The main focus is on upgrading to newer versions that require Node.js 18 or higher, removing deprecated or obsolete packages, and introducing some new dependencies.

Dependency upgrades and ecosystem modernization:

  • Upgraded jsdom and its related dependencies (such as cssstyle, data-urls, domexception, html-encoding-sniffer, http-proxy-agent, https-proxy-agent, w3c-xmlserializer, whatwg-encoding, whatwg-mimetype, whatwg-url, tough-cookie, tr46, and agent-base) to versions compatible with Node.js 18+, improving compatibility and security. [1] [2] [3] [4] [5] F5d6a7f6L2132R2143, [6] [7] [8] [9] [10]

Package removals and cleanup:

  • Removed several deprecated or unnecessary packages, including abab, acorn-globals, @tootallnate/once, data-urls@4.0.0, domexception@4.0.0, escodegen, psl, querystringify, requires-port, universalify, and url-parse. This reduces bloat and potential maintenance issues. [1] [2] [3] [4] [5] [6] [7] [8]

New dependency additions:

  • Added new packages such as @asamuzakjp/css-color, several @csstools/* packages, and tldts/tldts-core, which may be required for new features or improved CSS and domain parsing support. [1] [2] [3]

Peer dependency and engine updates:

  • Updated peer dependencies and Node.js engine requirements for several packages, enforcing Node.js 18+ where necessary to ensure compatibility with the latest versions. [1] [2] [3] F5d6a7f6L2132R2143, [4] [5] [6] [7]

These changes collectively modernize the dependency tree, improve security and maintainability, and prepare the codebase for future development on newer Node.js versions.

@samchon samchon requested a review from Copilot August 10, 2025 03:22
@samchon samchon self-assigned this Aug 10, 2025
@samchon samchon added documentation Improvements or additions to documentation enhancement New feature or request labels Aug 10, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request adds an optional description field to the TypeGuardError class to provide human-readable descriptions of type guard errors. The primary purpose is to support specialized AI agent libraries and custom validation scenarios that need additional context beyond the standard technical type information.

  • Adds an optional description property to TypeGuardError class and its IProps interface
  • Implements logic to auto-populate description for undefined values with helpful guidance
  • Includes comprehensive documentation explaining the field's intended use cases
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

@@ -124,6 +135,14 @@ export class TypeGuardError<T = any> extends Error {
this.path = props.path;
this.expected = props.expected;
this.value = props.value;
if (props.description || props.value === undefined)
Copy link
Preview

Copilot AI Aug 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The condition logic is incorrect. When props.description is truthy, the description will be set even when the value is not undefined, which contradicts the auto-population intent. The condition should be if (props.description !== undefined || props.value === undefined) to properly handle explicit empty string descriptions.

Suggested change
if (props.description || props.value === undefined)
if (props.description !== undefined || props.value === undefined)

Copilot uses AI. Check for mistakes.

Copy link

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedjsdom@​21.1.2 ⏵ 26.1.098 +1100100 +18770

View full report

Copy link

pkg-pr-new bot commented Aug 10, 2025

Open in StackBlitz

npm i https://pkg.pr.new/typia@1649

commit: 672a046

@samchon samchon merged commit 9abb3c2 into master Aug 10, 2025
10 checks passed
@samchon samchon deleted the feat/assert branch August 10, 2025 03:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant