Skip to content

Commit

Permalink
Update to Node20/ESM (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
carlansley authored Jan 10, 2024
1 parent ab511e6 commit 526342f
Show file tree
Hide file tree
Showing 55 changed files with 751 additions and 688 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x]
node-version: [20.x, 21.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
Expand All @@ -37,7 +37,7 @@ jobs:
name: Branch Build
strategy:
matrix:
node-version: [18.x, 20.x]
node-version: [20.x, 21.x]
steps:
- uses: actions/checkout@v3
with:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
name: Publish to NPM
steps:
- uses: actions/checkout@v3
Expand All @@ -21,6 +24,6 @@ jobs:
- name: Run Test
run: npm run test
- name: Publish
run: npm publish
run: npm publish --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_PUBLISH }}
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License

Copyright (c) 2021-2023 Check Digit, LLC
Copyright (c) 2021-2024 Check Digit, LLC

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[![Dependency Status](https://img.shields.io/npm/v/asyncerator.svg)](https://www.npmjs.com/package/asyncerator)
[![Dependency Status](https://img.shields.io/npm/dt/asyncerator.svg)](https://www.npmjs.com/package/asyncerator)

Copyright (c) 2021-2023 [Check Digit, LLC](https://checkdigit.com)
Copyright (c) 2021–2024 [Check Digit, LLC](https://checkdigit.com)

## Introduction

Expand Down Expand Up @@ -136,7 +136,7 @@ will be first, the slowest last.
### `merge<T>(...iterators: Asyncable<T | Asyncable<T>>[]): Asyncerator<T>`

Merge multiple asyncables into a single Asyncerator. If an iterator yields another Asyncerator,
merge it's output into the stream.
merge its output into the stream.

### `series<T>(...iterators: Asyncable<T>[]): Asyncerator<T>`

Expand Down Expand Up @@ -194,7 +194,7 @@ function map<Input, Output>(mapFunction: (value: Input) => Output): Operator<Inp
}
```

It is straightforward to create custom operators, and mix with streams, but it is important to note how they relate to
It is straightforward to create custom operators and mix with streams, but it is important to note how they relate to
streams:

- returning (exiting) out of the function is equivalent to the `end` event of a stream. The pipeline will complete.
Expand Down Expand Up @@ -237,7 +237,7 @@ up to 128 `concurrent` values to be processed.
The `sequenceFunction` will be called repeatedly with an incrementing numerical parameter, returning a Promise
that resolves with the same type as Input and is inserted into the stream. The sequence operator
passes through all other values. Because the `sequenceFunction` returns a Promise, it
can delay its response (using setTimeout) to emit values on a regular schedule, e.g. once a second:
can delay its response (using setTimeout) to emit values on a regular schedule, e.g., once a second:

```
pipeline(
Expand Down
4 changes: 2 additions & 2 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ These versions of `asyncerator` are currently being supported with security upda

| Version | Supported |
| ------- | ------------------ |
| \>= 3.x | :white_check_mark: |
| \< 3.0 | :x: |
| \>= 4.x | :white_check_mark: |
| \< 4.0 | :x: |

## Reporting a Vulnerability

Expand Down
Loading

0 comments on commit 526342f

Please sign in to comment.