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: saghul/txiki.js
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v22.11.0
Choose a base ref
...
head repository: saghul/txiki.js
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v22.11.1
Choose a head ref
  • 6 commits
  • 14 files changed
  • 2 contributors

Commits on Nov 4, 2022

  1. docs: fixed DirHandle declaration TypeScript error with 'for await ..…

    …. of'
    
    When using the docs TypeScript declaration file, the example async iterator
    code...
    
        const dirIter = await tjs.readdir('.');
        for await (const item of dirIter) {
            console.log(item.name);
        }
    
    ...does not compile due to a TypeScript error.
    
        error TS2504: Type 'DirHandle' must have a '[Symbol.asyncIterator]()' method that returns an async iterator.
    
    The DirHandle must be declared as an AsyncIterableIterator, which the
    implementation already satisfies, instead of an AsyncIterator.
    
    The MDN reference on `for await ... of` hints at the need for this:
    
        Note: for await...of doesn't work with async iterators that are not async iterables.
    samuelbrian authored and saghul committed Nov 4, 2022
    Configuration menu
    Copy the full SHA
    9556fad View commit details
    Browse the repository at this point in the history
  2. js: performance improvement for TextDecoder pollyfill

    The UTF-8-only encoder/decoder was performing poorly due to inefficient
    array manipulation.
    Applied changes from the original text-encoding package that reduce
    the amount of copying.
    
    Relates to #316
    samuelbrian authored and saghul committed Nov 4, 2022
    Configuration menu
    Copy the full SHA
    ef2f563 View commit details
    Browse the repository at this point in the history

Commits on Nov 7, 2022

  1. os: add chdir() from libuv

    samuelbrian authored and saghul committed Nov 7, 2022
    Configuration menu
    Copy the full SHA
    c3cad1d View commit details
    Browse the repository at this point in the history

Commits on Nov 8, 2022

  1. path: update path module to match Node 18

    Including the win32 implementation.
    saghul committed Nov 8, 2022
    Configuration menu
    Copy the full SHA
    84ba328 View commit details
    Browse the repository at this point in the history
  2. test: use new path module instead of realpath

    Checks correctness on Windows.
    saghul committed Nov 8, 2022
    Configuration menu
    Copy the full SHA
    7fd8da2 View commit details
    Browse the repository at this point in the history
  3. modules: add back module normalizer

    In the normalizer, `base_name` is the full path to the module doing the
    import, and `name` the import itself.
    
    Thus, we want to normalize the path and make sure Windows paths use the
    appropriate separator.
    
    The name, however, is always given with posix style paths.
    saghul committed Nov 8, 2022
    Configuration menu
    Copy the full SHA
    99baec3 View commit details
    Browse the repository at this point in the history
Loading