denoland / deno_std

The Deno Standard Library
https://jsr.io/@std
MIT License
2.83k stars 581 forks source link

BREAKING(json): remove `json` from module names #5173

Closed iuioiua closed 19 hours ago

iuioiua commented 5 days ago

What's changed

json has been removed from module names in @std/json. In other words:

  1. @std/json/json-parse-stream has moved to @std/json/parse-stream.
  2. @std/json/json-stringify-stream has moved to @std/json/stringify-stream.

Motivations

These changes were made to shorten these module specifiers while still retaining their context; that they're JSON-oriented streams.

Migration guide

To migrate:

  1. Import from @std/json/parse-stream instead of @std/json/json-parse-stream.

    - import { JsonParseStream } from "@std/json/json-parse-stream";
    + import { JsonParseStream } from "@std/json/parse-stream";
    
    // ...
  2. Import from @std/json/stringify-stream instead of @std/json/json-stringify-stream.

    - import { JsonStringifyStream } from "@std/json/json-stringify-stream";
    + import { JsonStringifyStream } from "@std/json/stringify-stream";
    
    // ...

Closes #5177.

codecov[bot] commented 5 days ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 94.95%. Comparing base (b11514e) to head (05bc6da).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #5173 +/- ## ======================================= Coverage 94.95% 94.95% ======================================= Files 460 460 Lines 38073 38073 Branches 5549 5549 ======================================= Hits 36154 36154 Misses 1878 1878 Partials 41 41 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.