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: iterable-iterator/convolution
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.0.2
Choose a base ref
...
head repository: iterable-iterator/convolution
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Loading
File renamed without changes.
1 change: 1 addition & 0 deletions .fixpackrc
Original file line number Diff line number Diff line change
@@ -28,6 +28,7 @@
"unpkg",
"exports",
"files",
"publishConfig",
"scripts",
"bundledDependencies",
"dependencies",
58 changes: 58 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: ci

on:
push:
branches:
main
pull_request:

jobs:

build:
name: Continuous integration (build)
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4

- name: Install 📦
uses: bahmutov/npm-install@v1
with:
install-command: yarn --frozen-lockfile --ignore-scripts
useRollingCache: true

- name: Build 🏗️
run: yarn build

- name: Archive build 💽
uses: actions/upload-artifact@v4
with:
name: dist
path: dist
retention-days: 1

test:
needs: ["build"]
name: Continuous integration (tests)
runs-on: ubuntu-latest
strategy:
matrix:
bundle: ["modern", "module", "cjs"]
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4

- name: Install 📦
uses: bahmutov/npm-install@v1
with:
install-command: yarn --frozen-lockfile --ignore-scripts
useRollingCache: true

- name: Load build 💽
uses: actions/download-artifact@v4
with:
name: dist
path: dist

- name: Test 🔬
run: yarn test:${{ matrix.bundle }}
23 changes: 13 additions & 10 deletions .github/workflows/ci:test.yml → .github/workflows/ci:cover.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,28 @@
name: ci:test
name: ci:cover
on:
- push
- pull_request
push:
branches:
main
pull_request:
jobs:
test:
name: Continuous integration (tests)
cover:
name: Continuous integration (code coverage)
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Install 🔧
- name: Install 📦
uses: bahmutov/npm-install@v1
with:
install-command: yarn --frozen-lockfile --ignore-scripts
useRollingCache: true

- name: Test 🔬
run: yarn ci:test
- name: Test and record coverage 🔬
run: yarn cover

- name: Publish coverage report 📃
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v3
continue-on-error: true
with:
fail_ci_if_error: true
22 changes: 22 additions & 0 deletions .github/workflows/ci:lint-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: ci:lint-config
on:
push:
branches:
main
pull_request:
jobs:
cover:
name: Continuous integration (config linting)
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4

- name: Install 📦
uses: bahmutov/npm-install@v1
with:
install-command: yarn --frozen-lockfile --ignore-scripts
useRollingCache: true

- name: Lint config 👕
run: yarn lint-config
22 changes: 22 additions & 0 deletions .github/workflows/ci:lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: ci:lint
on:
push:
branches:
main
pull_request:
jobs:
cover:
name: Continuous integration (code linting)
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4

- name: Install 📦
uses: bahmutov/npm-install@v1
with:
install-command: yarn --frozen-lockfile --ignore-scripts
useRollingCache: true

- name: Lint 👕
run: yarn lint
4 changes: 2 additions & 2 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Install 🔧
run: npm install
@@ -17,7 +17,7 @@ jobs:
run: npm run build-gh-pages

- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@4.1.1
uses: JamesIves/github-pages-deploy-action@v4.7.3
with:
branch: gh-pages
folder: gh-pages
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -23,9 +23,8 @@ convolution(second_derivative, signal); // ...

[![License](https://img.shields.io/github/license/iterable-iterator/convolution.svg)](https://raw.githubusercontent.com/iterable-iterator/convolution/main/LICENSE)
[![Version](https://img.shields.io/npm/v/@iterable-iterator/convolution.svg)](https://www.npmjs.org/package/@iterable-iterator/convolution)
[![Tests](https://img.shields.io/github/workflow/status/iterable-iterator/convolution/ci:test?event=push&label=tests)](https://github.com/iterable-iterator/convolution/actions/workflows/ci:test.yml?query=branch:main)
[![Dependencies](https://img.shields.io/david/iterable-iterator/convolution.svg)](https://david-dm.org/iterable-iterator/convolution)
[![Dev dependencies](https://img.shields.io/david/dev/iterable-iterator/convolution.svg)](https://david-dm.org/iterable-iterator/convolution?type=dev)
[![Tests](https://img.shields.io/github/actions/workflow/status/iterable-iterator/convolution/ci.yml?branch=main&event=push&label=tests)](https://github.com/iterable-iterator/convolution/actions/workflows/ci.yml?query=branch:main)
[![Dependencies](https://img.shields.io/librariesio/github/iterable-iterator/convolution.svg)](https://github.com/iterable-iterator/convolution/network/dependencies)
[![GitHub issues](https://img.shields.io/github/issues/iterable-iterator/convolution.svg)](https://github.com/iterable-iterator/convolution/issues)
[![Downloads](https://img.shields.io/npm/dm/@iterable-iterator/convolution.svg)](https://www.npmjs.org/package/@iterable-iterator/convolution)

4 changes: 2 additions & 2 deletions doc/manual/usage.md
Original file line number Diff line number Diff line change
@@ -6,14 +6,14 @@
First, require the polyfill at the entry point of your application
```js
require( 'regenerator-runtime/runtime' ) ;
await import( 'regenerator-runtime/runtime.js' ) ;
// or
import 'regenerator-runtime/runtime.js' ;
```

Then, import the library where needed
```js
const convolution = require( '@iterable-iterator/convolution' ) ;
const convolution = await import( '@iterable-iterator/convolution' ) ;
// or
import * as convolution from '@iterable-iterator/convolution' ;
```
Loading