RFC: JSON Pointer (RFC 6901) and JSON Patch (RFC 6902) support

Đang mở
#16,327 2 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@gururaj1512 đang làm issue này rồi.

Từ ngày 27/10/2026.

  • #16380 của @gururaj1512 — đang mở
  • #16388 của @gururaj1512 — đang mở
  • #16389 của @gururaj1512 — đang mở

Đánh giá

Issue này chưa được đánh giá.

Mô tả

RFC
Description

This issue tracks the work required to implement first-class JSON Pointer (RFC 6901) and JSON Patch (RFC 6902) utility suites across the @stdlib/utils namespace.

The goal is to provide a zero-dependency, standard-compliant, immutable patching architecture suitable for incremental document updates (such as delta updates to Vega visualization specifications):

  1. JSON Pointer (@stdlib/utils/json-pointer/*): Serves as the foundational addressing layer for identifying and resolving values within JSON documents, parsing pointer strings into reference tokens, formatting tokens, validating array indices, and enforcing prototype pollution security boundaries.
  2. JSON Patch (@stdlib/utils/json-patch/*): Implements atomic patch execution for the six standard RFC 6902 operations (add, remove, replace, move, copy, and test) using structural sharing (path-cloning) to guarantee that unmodified subtrees maintain reference equality and the original document is never mutated.

Below is the complete hierarchical and alphabetical list of packages across both namespaces, annotated with their status and task type.


Package Checklist

JSON Pointer Suite (RFC 6901)
  • @stdlib/utils/json-pointer (Top-Level Namespace Aggregator)
    • @stdlib/utils/json-pointer/format
    • @stdlib/utils/json-pointer/get
    • @stdlib/utils/json-pointer/has
    • @stdlib/utils/json-pointer/parse
    • @stdlib/utils/json-pointer/resolve
    • @stdlib/utils/json-pointer/base (Base Operations Sub-Namespace)
      • @stdlib/utils/json-pointer/base/resolve-token
      • @stdlib/utils/json-pointer/base/assert (Base Assertions Sub-Namespace)
        • @stdlib/utils/json-pointer/base/assert/is-safe-token

JSON Patch Suite (RFC 6902)
  • @stdlib/utils/json-patch (Top-Level Namespace Aggregator)
    • @stdlib/utils/json-patch/apply
    • @stdlib/utils/json-patch/validate
    • @stdlib/utils/json-patch/ops (Patch Operations Sub-Namespace)
      • @stdlib/utils/json-patch/ops/add
      • @stdlib/utils/json-patch/ops/copy
      • @stdlib/utils/json-patch/ops/move
      • @stdlib/utils/json-patch/ops/remove
      • @stdlib/utils/json-patch/ops/replace
      • @stdlib/utils/json-patch/ops/assert
    • @stdlib/utils/json-patch/base (Base Operations Sub-Namespace)
      • @stdlib/utils/json-patch/base/delete-in
      • @stdlib/utils/json-patch/base/insert-in
      • @stdlib/utils/json-patch/base/set-in
      • @stdlib/utils/json-patch/base/shallow-clone
Related Issues

Related issues # , # , and # .

Questions

No.

Other

No.

Checklist
  • I have read and understood the Code of Conduct.
  • Searched for existing issues and pull requests.
  • The issue name begins with RFC:.
Ngôn ngữ chính
JavaScript
Star
6k
Fork
1.3k
Merge trung bình
1 ngày 21 giờ
Pull request đã merge (30 ngày)
224

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của stdlib-js/stdlib

Tất cả issue của stdlib-js/stdlib

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.