Skip to content

chore(lint): enable no-new-wrappers - #2141

Merged
HAYDEN-OAI merged 14 commits into
mainfrom
dev/hayden/ultracite-062-no-new-wrappers
Aug 8, 2026
Merged

HAYDEN-OAI merged 14 commits into
mainfrom
dev/hayden/ultracite-062-no-new-wrappers

Conversation

@HAYDEN-OAI

@HAYDEN-OAI HAYDEN-OAI commented Aug 7, 2026 •

Copy link
Copy Markdown
Contributor
  • I understand that this repository is auto-generated and my pull request may not be merged

Changes being requested

  • Remove the no-new-wrappers compatibility exception from oxlint.config.ts.
  • Resolve the 2 existing handwritten-code diagnostics with focused, behavior-preserving cleanup.

Additional context & links

Validation

  • pnpm lint
  • pnpm exec tsc --pretty false
  • pnpm exec vitest run --config vitest.config.mts --update=none

Stack

#2129
#2130
#2131
#2132
#2133
#2134
#2135
#2136
#2137
#2138
#2139
#2140
#2141 👈 this PR

@jbeckwith-oai jbeckwith-oai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Object(0) and Object("") still construct boxed Number/String wrappers; they only hide that intent from no-new-wrappers, making this fixture less direct. This test deliberately exercises boxed primitive objects, so please keep new Number() / new String() and add narrow documented oxlint-disable-next-line no-new-wrappers suppressions explaining that these wrappers are intentional test inputs. That preserves the fixture’s meaning instead of changing its spelling to evade the rule.

HAYDEN-OAI added a commit that referenced this pull request Aug 7, 2026
- [x] I understand that this repository is auto-generated and my pull
request may not be merged

## Changes being requested

- Remove the `unicorn/no-hex-escape` compatibility exception from
`oxlint.config.ts`.
- Resolve the 2 existing handwritten-code diagnostics with focused,
behavior-preserving cleanup.

## Additional context & links

- Oxlint cleanup stack, part 50; stacked on
https://github.com/openai/openai-node.
- Preserves generated-file exclusions and repository-specific import
policy.

### Validation

- `pnpm lint`
- `pnpm exec tsc --pretty false`
- `pnpm exec vitest run --config vitest.config.mts --update=none`

## Stack

#2129 👈 this PR
#2130
#2131
#2132
#2133
#2134
#2135
#2136
#2137
#2138
#2139
#2140
#2141
@HAYDEN-OAI
HAYDEN-OAI force-pushed the dev/hayden/ultracite-061-guard-for-in branch 2 times, most recently from b821599 to 497277a Compare August 7, 2026 22:46
Base automatically changed from dev/hayden/ultracite-061-guard-for-in to main August 7, 2026 23:38

@jbeckwith-oai jbeckwith-oai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Prior boxed-wrapper finding is resolved with direct constructors and narrow documented lint suppressions. Full diff and validation are clean.

@openai-sdks

openai-sdks Bot commented Aug 8, 2026 •

Copy link
Copy Markdown
Contributor

OkTest Summary

✅ 237/237 SDK tests passed in 10.938s for Node SDK PR #2141.

Test results — 42 files
Test Result Time
tests/chat-completions-complex-body.test.ts ✅ Passed 166ms
tests/chat-completions-create.test.ts ✅ Passed 206ms
tests/chat-completions-stream.test.ts ✅ Passed 334ms
tests/files-content-binary.test.ts ✅ Passed 137ms
tests/files-create-multipart.test.ts ✅ Passed 209ms
tests/files-list-pagination.test.ts ✅ Passed 191ms
tests/initialize-config.test.ts ✅ Passed 193ms
tests/instance-isolation.test.ts ✅ Passed 110ms
tests/models-list.test.ts ✅ Passed 144ms
tests/responses-background-lifecycle.test.ts ✅ Passed 261ms
tests/responses-body-method-errors.test.ts ✅ Passed 319ms
tests/responses-cancel-timeout.test.ts ✅ Passed 217ms
tests/responses-cancel.test.ts ✅ Passed 230ms
tests/responses-compact-retries.test.ts ✅ Passed 307ms
tests/responses-compact.test.ts ✅ Passed 246ms
tests/responses-create-advanced-stream.test.ts ✅ Passed 127ms
tests/responses-create-advanced.test.ts ✅ Passed 229ms
tests/responses-create-disconnect.test.ts ✅ Passed 1.129s
tests/responses-create-errors.test.ts ✅ Passed 223ms
tests/responses-create-malformed-api-responses.test.ts ✅ Passed 162ms
tests/responses-create-retries.test.ts ✅ Passed 294ms
tests/responses-create-stream-failures.test.ts ✅ Passed 229ms
tests/responses-create-stream-timeout.test.ts ✅ Passed 2.163s
tests/responses-create-stream-wire.test.ts ✅ Passed 2.79s
tests/responses-create-stream.test.ts ✅ Passed 102ms
tests/responses-create-terminal-states.test.ts ✅ Passed 226ms
tests/responses-create-timeout.test.ts ✅ Passed 237ms
tests/responses-create.test.ts ✅ Passed 224ms
tests/responses-delete.test.ts ✅ Passed 192ms
tests/responses-input-items-errors.test.ts ✅ Passed 295ms
tests/responses-input-items-list.test.ts ✅ Passed 191ms
tests/responses-input-items-options.test.ts ✅ Passed 156ms
tests/responses-input-tokens-count-timeout.test.ts ✅ Passed 258ms
tests/responses-input-tokens-count.test.ts ✅ Passed 240ms
tests/responses-malformed-inputs.test.ts ✅ Passed 2.347s
tests/responses-not-found-errors.test.ts ✅ Passed 243ms
tests/responses-parse.test.ts ✅ Passed 213ms
tests/responses-retrieve-retries.test.ts ✅ Passed 282ms
tests/responses-retrieve.test.ts ✅ Passed 224ms
tests/responses-stored-method-errors.test.ts ✅ Passed 608ms
tests/retry-behavior.test.ts ✅ Passed 2.971s
tests/sdk-error-shape.test.ts ✅ Passed 306ms

View OkTest run #31229843091

SDK merge (e18d3d788710) · head (4e2d407a33a3) · base (7b986fc28a02) · OkTest (91635c6a2723)

@HAYDEN-OAI
HAYDEN-OAI added this pull request to the merge queue Aug 8, 2026
Merged via the queue into main with commit 4051f9f Aug 8, 2026
36 checks passed
@HAYDEN-OAI
HAYDEN-OAI deleted the dev/hayden/ultracite-062-no-new-wrappers branch August 8, 2026 00:24
@openai-sdks openai-sdks Bot mentioned this pull request Aug 7, 2026

This branch was previously deployed

1 inactive deployment
ci — 4e2d407a Deployed Aug 8, 2026 by HAYDEN-OAI via examples #5747
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants