Skip to content

refactor(query): rename getLiteralValue to getValueLiteral - #29

Closed
Curstantine wants to merge 1 commit into
masterfrom
refactor/rename-get-literal-value
Closed

refactor(query): rename getLiteralValue to getValueLiteral#29
Curstantine wants to merge 1 commit into
masterfrom
refactor/rename-get-literal-value

Conversation

@Curstantine

Copy link
Copy Markdown
Owner

Summary

Renames the exported getLiteralValue function to getValueLiteral in the @jabascript/query package, updating all call sites, tests, and generated typings.

Changes

  • packages/query/src/index.js: renamed the function definition and its call site in parseSearchParams.
  • packages/query/tests/index.test.js: updated import, describe block, and all assertions.
  • Added a major changeset since this is a breaking public API rename.

Verification

  • pnpm --filter @jabascript/query test: 39 tests passed.
  • pnpm --filter @jabascript/query build:types: clean.
  • pnpm lint: 0 warnings, 0 errors.
  • Full workspace run: 120/120 tests passed across all packages. Note: the react package's browser test requires a Playwright chromium binary, which isn't installed in this environment (pre-existing, unrelated to this change).

Copilot AI lite review requested due to automatic review settings August 6, 2026 19:18
@Curstantine Curstantine closed this Aug 6, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Renames the public query utility getLiteralValue to getValueLiteral and updates internal usage and tests accordingly.

Changes:

  • Renamed exported function getLiteralValuegetValueLiteral
  • Updated parseSearchParams to call the renamed function
  • Updated Vitest suite + added a Changeset marking the rename as a major bump

Reviewed changes

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

File Description
packages/query/src/index.js Renames the exported function and updates internal call site
packages/query/tests/index.test.js Updates tests/imports to use the new function name
.changeset/quick-tigers-grow.md Declares a major release due to the breaking rename

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

* @returns {string | null | undefined}
*/
export function getLiteralValue(value) {
export function getValueLiteral(value) {
Comment on lines +157 to 160
export function getValueLiteral(value) {
if (value === "null") return null;
if (value === "undefined") return undefined;
return value;
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