Skip to content

Migrate to jsr specifiers - #109

Open
mcandeia wants to merge 3 commits into
hyperdxio:mainfrom
mcandeia:use-jsr-update-logs
Open

Migrate to jsr specifiers#109
mcandeia wants to merge 3 commits into
hyperdxio:mainfrom
mcandeia:use-jsr-update-logs

Conversation

@mcandeia

Copy link
Copy Markdown

No description provided.

Signed-off-by: Marcos Candeia <marrcooos@gmail.com>
@changeset-bot

changeset-bot Bot commented May 15, 2024

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 55b29b4

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@wrn14897

Copy link
Copy Markdown
Member

It looks like the new changes break the build. cc @mcandeia

@greptile-apps

greptile-apps Bot commented Aug 11, 2026

Copy link
Copy Markdown

Greptile Summary

This PR migrates the Deno logging integration from pinned deno.land standard-library URLs to JSR specifiers and adapts the handler to the newer logging API.

  • Replaces std/log URL imports with jsr:@std/log entry points.
  • Updates BaseHandler, options, and warning-level API names.
  • Applies broad formatting changes to the module.

Confidence Score: 4/5

The PR appears safe to merge after addressing the non-blocking formatting and dependency-pinning concerns.

The migration has no established current runtime failure, but it violates the repository's quote convention and makes std/log resolution depend on an unconstrained registry release.

Files Needing Attention: packages/deno/mod.ts

Important Files Changed

Filename Overview
packages/deno/mod.ts Migrates standard-library logging imports and APIs to JSR, but introduces repository-formatting violations and leaves the new dependency unconstrained.

Fix All in Claude Code Fix All in Conductor Fix All in Cursor Fix All in Codex

Reviews (1): Last reviewed commit: "Merge branch 'main' into use-jsr-update-..." | Re-trigger Greptile

Comment thread packages/deno/mod.ts
@@ -1,73 +1,70 @@
// Derived from https://github.com/denoland/deno_std/blob/main/log/handlers.ts
import * as log from 'https://deno.land/std@0.203.0/log/mod.ts';
import * as log from "jsr:@std/log";

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Double-quoted strings violate repository style

The migration changes string literals throughout this module to double quotes, while the repository guidance requires single quotes. This creates avoidable formatting churn and leaves the file inconsistent with the prescribed style.

Context Used: AGENTS.md (source)

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

Fix in Claude Code Fix in Conductor Fix in Cursor Fix in Codex

Comment thread packages/deno/mod.ts
Comment on lines +2 to +5
import * as log from "jsr:@std/log";

import type { LogRecord } from 'https://deno.land/std@0.203.0/log/logger.ts';
import {
LevelName,
LogLevels,
} from 'https://deno.land/std@0.203.0/log/levels.ts';
import { LevelName, LogLevels } from "jsr:@std/log/levels";
import type { LogRecord } from "jsr:@std/log/logger";

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 JSR dependency is unconstrained

These imports replace the pinned std@0.203.0 dependency with an unconstrained jsr:@std/log release, while the repository has no Deno lockfile or import map fixing its resolution. Fresh builds can therefore resolve a different API without any repository change, undermining reproducibility and eventually breaking the specific handler exports used below.

Fix in Claude Code Fix in Conductor Fix in Cursor Fix in Codex

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