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: kpdecker/jsdiff
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v8.0.1
Choose a base ref
...
head repository: kpdecker/jsdiff
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v8.0.2
Choose a head ref
  • 6 commits
  • 4 files changed
  • 2 contributors

Commits on May 19, 2025

  1. Tweak example of using a Chinese word segmenter to one where the segm…

    …enter segments in a way that seems more correct (or at least more self-consistent) to a native Chinese speaker (#613)
    
    See discussion at #539 (comment) for explanation
    ExplodingCabbage authored May 19, 2025
    Configuration menu
    Copy the full SHA
    0365f4b View commit details
    Browse the repository at this point in the history

Commits on May 20, 2025

  1. Improve tree shakability (#612)

    * Add `sideEffects: false` to `libesm/package.json`
    
    * Make tweaks I proposed in convo at #612
    
    * Fix build for Unix (and break it again for Windows in the process)
    
    * Use `node --eval`
    
    * --target es6 for ESM build
    
    @fisker points out at #612 (comment) that ESM modules aren't usable by ES5 environments anyway, so targeting ES5 is pointless
    
    ---------
    
    Co-authored-by: Mark Amery <markrobertamery@gmail.com>
    fisker and ExplodingCabbage authored May 20, 2025
    Configuration menu
    Copy the full SHA
    732416a View commit details
    Browse the repository at this point in the history
  2. Fix typo in scripts (#614)

    fisker authored May 20, 2025
    Configuration menu
    Copy the full SHA
    27e6c81 View commit details
    Browse the repository at this point in the history

Commits on May 22, 2025

  1. Fix broken diffWords test (#617)

    Somehow I screwed up #613 and merged it with the tests failing and with the sentence I was actually using in the test inconsistent with the one I claimed to be using in the comment above. Also, even if I'd got it right, I wouldn't've actually avoided hitting the inconsistency in Intl.Segmenter's tokenization rules that that PR was specifically trying to avoid, because it considers 他有 (he has) to be one word; I should've used 她有 (she has) which the segmenter sees as two words. This fixes both mistakes.
    ExplodingCabbage authored May 22, 2025
    Configuration menu
    Copy the full SHA
    d3f3bf5 View commit details
    Browse the repository at this point in the history
  2. Fix diffSentences for old Safari versions (#616)

    * Fix diffSentences for old Safari versions
    
    Resolves #615
    
    * Add release notes
    ExplodingCabbage authored May 22, 2025
    Configuration menu
    Copy the full SHA
    2717fd8 View commit details
    Browse the repository at this point in the history
  3. v8.0.2

    ExplodingCabbage committed May 22, 2025
    Configuration menu
    Copy the full SHA
    4f5c473 View commit details
    Browse the repository at this point in the history
Loading