Skip to content

Initial commit of package#1

Merged
sergeyshmakov merged 6 commits intomainfrom
initial
Mar 7, 2026
Merged

Initial commit of package#1
sergeyshmakov merged 6 commits intomainfrom
initial

Conversation

@sergeyshmakov
Copy link
Copy Markdown
Owner

@sergeyshmakov sergeyshmakov commented Mar 7, 2026

Note

Medium Risk
Moderate risk because it introduces automated publishing via semantic-release on main (with broad GitHub token permissions), which can affect release cadence and supply-chain posture if misconfigured.

Overview
Adds repo automation and governance: Dependabot config for monthly npm dependency updates (grouped by prod/dev), plus a PR workflow that runs npm ci, lint, tests, and a build.

Introduces automated publishing on main via a GitHub Actions workflow that runs lint/build/tests and then executes npx semantic-release (with id-token and write permissions). Also adds Biome formatting/lint config, Husky + Commitlint hooks, .gitignore/.npmrc, and new top-level docs (README.md, CONTRIBUTING.md, LICENSE) plus a small fix-tests.mjs helper script.

Written by Cursor Bugbot for commit 7c98297. Configure here.

Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Free Tier Details

You are on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7c982972f5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

src/utils.ts Outdated
{
get(target, key) {
if (key === PATH_SEGMENTS) return target[PATH_SEGMENTS as keyof typeof target];
if (typeof key === "string" && key !== "then" && key !== "Symbol") {
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 Badge Record then as a normal path segment

The proxy builder currently drops the then key entirely, so path((x) => x.then.value) is captured as just value instead of then.value. This produces incorrect paths for any payloads that legitimately include a then property, and downstream calls like get, set, and match will operate on the wrong location.

Useful? React with 👍 / 👎.

src/utils.ts Outdated
get(target, key) {
if (key === PATH_SEGMENTS) return target[PATH_SEGMENTS as keyof typeof target];
if (typeof key === "string" && key !== "then" && key !== "Symbol") {
const next: Segment = Number.isNaN(Number(key)) ? key : Number(key);
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 Badge Preserve numeric-looking object keys as strings

Every string key is coerced through Number(key), which rewrites valid object keys like "01" or "1e3" into numeric segments. That changes path identity and causes get/set to target different properties (for example, "01" becomes 1), leading to silent data mismatches whenever objects use numeric-looking string keys.

Useful? React with 👍 / 👎.

@sergeyshmakov sergeyshmakov merged commit c4fb04c into main Mar 7, 2026
1 check passed
@sergeyshmakov sergeyshmakov deleted the initial branch March 7, 2026 17:10
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.

1 participant