Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: npm/package-json
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: d4814d4
Choose a base ref
...
head repository: npm/package-json
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: b1e741b
Choose a head ref
  • 3 commits
  • 4 files changed
  • 2 contributors

Commits on Apr 10, 2024

  1. fix(perf): lazy load glob on normalize.js (#89)

    Since npm run didn't call those steps, we can save some `ms` by lazy
    loading this dependency.
    
    Before:
    
    
    ![image](https://github.com/npm/package-json/assets/12551007/b4654691-85c8-4431-ba60-f7188363a125)
    
    After:
    
    
    ![image](https://github.com/npm/package-json/assets/12551007/f3b02669-2070-4171-aeda-90954c55f54d)
    
    The entire load time didn't change, still `13ms` before & after, but if
    we call `npm run` inside a project that didn't have workspaces, we will
    save some `ms`, like this one:
    
    
    ![image](https://github.com/npm/package-json/assets/12551007/0fe98367-4967-40f2-8d71-2a1b8c4eda55)
    
    But this will also require the PR npm/cli#7360
    to be merged.
    H4ad authored Apr 10, 2024
    Configuration menu
    Copy the full SHA
    06df698 View commit details
    Browse the repository at this point in the history
  2. fix(perf): lazy load hosted git info on normalize (#90)

    Combined with #89, we can reduce the load time of `normalize` to less
    than `1ms`, making the `run-script` load in `4ms` instead of `13ms`.
    H4ad authored Apr 10, 2024
    Configuration menu
    Copy the full SHA
    a67317b View commit details
    Browse the repository at this point in the history
  3. chore: release 5.0.2 (#91)

    🤖 I have created a release *beep* *boop*
    ---
    
    
    ## [5.0.2](v5.0.1...v5.0.2)
    (2024-04-10)
    
    ### Bug Fixes
    
    *
    [`a67317b`](a67317b)
    [#90](#90) perf: lazy load
    hosted git info on normalize (#90) (@H4ad)
    *
    [`06df698`](06df698)
    [#89](#89) perf: lazy load glob
    on normalize.js (#89) (@H4ad)
    
    ---
    This PR was generated with [Release
    Please](https://github.com/googleapis/release-please). See
    [documentation](https://github.com/googleapis/release-please#release-please).
    
    Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
    github-actions[bot] authored Apr 10, 2024
    Configuration menu
    Copy the full SHA
    b1e741b View commit details
    Browse the repository at this point in the history
Loading