Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(readme): update link to Array#extras #343

Merged
merged 3 commits into from
Jun 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
110 changes: 110 additions & 0 deletions .github/workflows/main.pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
name: Build pull request

on:
pull_request:
branches:
- "master"

jobs:
lint-pull-request:
name: Lint pull request
runs-on: ubuntu-20.04
strategy:
fail-fast: true
matrix:
node: [18.x]
steps:
- name: Setup node v${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}

- name: Checkout
uses: actions/checkout@v3

- name: Cache node_modules
uses: actions/cache@v2
with:
key: ${{ runner.os }}-node_modules-${{ matrix.node }}-${{ hashFiles('package.json') }}
path: |
node_modules

- name: Check if source or test files changed
id: files_changed
uses: tj-actions/changed-files@v9.1
with:
files: |
src/**/*
spec/**/*

- name: Install dependencies
if: ${{ steps.files_changed.outputs.any_changed == 'true' || steps.files_changed.outputs.any_deleted == 'true' }}
run: |
yarn

- name: Lint files
if: ${{ steps.files_changed.outputs.any_changed == 'true' || steps.files_changed.outputs.any_deleted == 'true' }}
run: |
yarn lint

build-and-test-pull-request:
needs:
- lint-pull-request
name: Build and test pull request
runs-on: ubuntu-20.04
strategy:
fail-fast: true
matrix:
node: [14.x, 16.x, 18.x]
module: [cjs, esm, umd]
target: [es5, es2015, esnext]
steps:
- name: Setup node v${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Checkout
uses: actions/checkout@v3

- name: Cache targets
uses: actions/cache@v2
with:
key: ${{ runner.os }}-targets-${{ matrix.node }}-${{ matrix.target }}-${{ matrix.module }}-${{ hashFiles('package.json') }}
path: |
targets

- name: Cache node_modules
uses: actions/cache@v2
with:
key: ${{ runner.os }}-node_modules-${{ matrix.node }}-${{ matrix.target }}-${{ matrix.module }}-${{ hashFiles('package.json') }}
path: |
node_modules

- name: Check if test files changed
id: test_files_changed
uses: tj-actions/changed-files@v9.1
with:
files: |
spec/**/*

- name: Check if source files changed
id: source_files_changed
uses: tj-actions/changed-files@v9.1
with:
files: |
src/**/*

- name: Install dependencies
if: ${{ steps.test_files_changed.outputs.any_changed == 'true' || steps.test_files_changed.outputs.any_deleted == 'true' || steps.source_files_changed.outputs.any_changed == 'true' || steps.source_files_changed.outputs.any_deleted == 'true' }}
run: |
yarn

- name: Build package
if: ${{ steps.source_files_changed.outputs.any_changed == 'true' || steps.source_files_changed.outputs.any_deleted == 'true' }}
run: |
yarn build -t ${{ matrix.target }} -m ${{ matrix.module }}

- name: Test package
if: ${{ steps.test_files_changed.outputs.any_changed == 'true' || steps.test_files_changed.outputs.any_deleted == 'true' || steps.source_files_changed.outputs.any_changed == 'true' || steps.source_files_changed.outputs.any_deleted == 'true' }}
run: |
yarn test -t ${{ matrix.target }} -m ${{ matrix.module }}
44 changes: 0 additions & 44 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[![npm version](https://badge.fury.io/js/ix.svg)](https://badge.fury.io/js/ix)
[![Join the chat at https://gitter.im/ReactiveXIxJS/](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/ReactiveXIxJS/?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

*IxJS is a set of libraries to compose synchronous and asynchronous collections and [Array#extras](http://blogs.msdn.com/b/ie/archive/2010/12/13/ecmascript-5-part-2-array-extras.aspx) style composition in JavaScript*
*IxJS is a set of libraries to compose synchronous and asynchronous collections and [Array#extras](https://docs.microsoft.com/en-us/archive/blogs/ie/ecmascript-5-part-2-array-extras) style composition in JavaScript*

The Interactive Extensions for JavaScript (IxJS) brings the Array#extras combinators to iterables, generators, async iterables and async generators. With the introduction of the `Symbol.iterator` and generators in ES2015, and subsequent introduction of `Symbol.asyncIterator` and async generators, it became obvious we need an abstraction over these data structures for composition, querying and more.

Expand Down