Skip to content

Simple utils ts migration#848

Merged
Ryang-21 merged 7 commits intotypescript-migrationfrom
simple-utils-ts-migration
Feb 10, 2026
Merged

Simple utils ts migration#848
Ryang-21 merged 7 commits intotypescript-migrationfrom
simple-utils-ts-migration

Conversation

@Ryang-21
Copy link
Contributor

No description provided.

@github-actions
Copy link

Size Change: -58 B (0%)

Total Size: 3.51 MB

Filename Size Change
dist/stellar-base.js 2.59 MB -56 B (0%)
dist/stellar-base.min.js 920 kB -2 B (0%)

compressed-size-action

Copy link

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

Migrates a small utility (verifyChecksum) toward TypeScript usage and adjusts build/lint configuration to support TypeScript artifacts.

Changes:

  • Convert src/util/checksum to TypeScript with explicit Uint8Array types.
  • Add a new checksum unit test written for Vitest.
  • Update TypeScript and ESLint configuration (declaration output, ignore patterns, and removed per-file eslint disables).

Reviewed changes

Copilot reviewed 8 out of 9 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
type_validation/util/checksum.d.ts Adds a declaration for verifyChecksum under type_validation/.
tsconfig.cjs.json Enables declaration emit and routes declarations to ./type_validation.
tsconfig.base.json Disables allowJs (impacts how tsc handles the largely-JS src/ tree).
test/unit/util/checksum.test.ts Adds Vitest-based unit tests for verifyChecksum.
src/util/checksum.ts Adds TypeScript annotations to verifyChecksum.
src/operations/set_options.js Removes file-level eslint disable for no-param-reassign.
src/operation.js Removes file-level eslint disable for no-bitwise.
config/eslint.config.cjs Adds test globals block (for JS tests) and ignores src/generated via flat config.
.eslintignore Removes legacy ignore entries now handled via flat config.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Ryang-21 Ryang-21 force-pushed the simple-utils-ts-migration branch from 1505687 to 2710710 Compare February 10, 2026 17:46
@Ryang-21 Ryang-21 force-pushed the simple-utils-ts-migration branch from 2710710 to b21baeb Compare February 10, 2026 17:50
@Ryang-21 Ryang-21 requested a review from quietbits February 10, 2026 18:02

module.exports = eslintConfig.defineConfig(
includeIgnoreFile(gitignorePath),
{ ignores: ["src/generated"] },
Copy link
Contributor

Choose a reason for hiding this comment

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

We don't need to ignore vendor?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That directory does not seem to exist anymore

"esModuleInterop": true
"esModuleInterop": true,
"declaration": true,
"declarationDir": "./type_validation"
Copy link
Contributor

Choose a reason for hiding this comment

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

It might be just me, but should we rename the directory to something that signals that it was generated? I'm sure I will forget it after a while, and will wonder where these types are coming from. Thoughts?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We definitely can but this will be moved most likely to lib/types once we are done migrating

@Ryang-21 Ryang-21 merged commit f997fd3 into typescript-migration Feb 10, 2026
6 checks passed
@Ryang-21 Ryang-21 deleted the simple-utils-ts-migration branch February 10, 2026 18:43
@quietbits quietbits linked an issue Feb 11, 2026 that may be closed by this pull request
5 tasks
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.

Migrate /utils files to TS

2 participants