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: make-github-pseudonymous-again/js-compare
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.0.0
Choose a base ref
...
head repository: make-github-pseudonymous-again/js-compare
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v2.0.1
Choose a head ref
  • 20 commits
  • 8 files changed
  • 3 contributors

Commits on Mar 19, 2021

  1. Verified

    This commit was signed with the committer’s verified signature.
    Copy the full SHA
    115c0c0 View commit details

Commits on Mar 26, 2021

  1. 🤖 config(github): Configure workflow to automate tests of changes.

    These changes were automatically generated by a transform whose code can be found at:
      - https://github.com/aureooms/rejuvenate/blob/057c4df07dfcd3ed83201b062803b05a252bf67f/src/transforms/github:workflow-configure-ci:test.js
    Please contact the author of the transform if you believe there was an error.
    a-flying-potato authored and make-github-pseudonymous-again committed Mar 26, 2021

    Verified

    This commit was signed with the committer’s verified signature.
    Copy the full SHA
    5c20a52 View commit details
  2. Copy the full SHA
    70fabc0 View commit details
  3. Copy the full SHA
    ead2f4e View commit details

Commits on Mar 27, 2021

  1. Copy the full SHA
    7fc26d3 View commit details

Commits on Mar 30, 2021

  1. Copy the full SHA
    d091619 View commit details
  2. Copy the full SHA
    7116d4e View commit details
  3. Copy the full SHA
    f928286 View commit details

Commits on Apr 2, 2021

  1. Copy the full SHA
    1355bbb View commit details

Commits on Apr 4, 2021

  1. Copy the full SHA
    416f3e2 View commit details

Commits on Apr 6, 2021

  1. Verified

    This commit was signed with the committer’s verified signature.
    Copy the full SHA
    216235f View commit details
  2. Verified

    This commit was signed with the committer’s verified signature.
    Copy the full SHA
    1711566 View commit details
  3. 🤖 config(fixpack): Update or create .fixpackrc.

    These changes were automatically generated by a transform whose code can be found at:
      - https://github.com/aureooms/rejuvenate/blob/c0306a0431f42510000cc745a99bc61ad7710a7a/src/transforms/fixpack:configure.js
    Please contact the author of the transform if you believe there was an error.
    a-flying-potato authored and make-github-pseudonymous-again committed Apr 6, 2021

    Verified

    This commit was signed with the committer’s verified signature.
    Copy the full SHA
    9933698 View commit details
  4. 🤖 chore: Add cover key in .babel.env.

    These changes were automatically generated by a transform whose code can be found at:
      - https://github.com/aureooms/rejuvenate/blob/c0306a0431f42510000cc745a99bc61ad7710a7a/src/transforms/package.json:ensure-babel-env-cover.js
    Please contact the author of the transform if you believe there was an error.
    a-flying-potato authored and make-github-pseudonymous-again committed Apr 6, 2021

    Verified

    This commit was signed with the committer’s verified signature.
    Copy the full SHA
    40c846d View commit details
  5. 🤖 config(babel): Setup cover environment.

    These changes were automatically generated by a transform whose code can be found at:
      - https://github.com/aureooms/rejuvenate/blob/c0306a0431f42510000cc745a99bc61ad7710a7a/src/transforms/babel:setup-env-cover.js
    Please contact the author of the transform if you believe there was an error.
    a-flying-potato authored and make-github-pseudonymous-again committed Apr 6, 2021

    Verified

    This commit was signed with the committer’s verified signature.
    Copy the full SHA
    2bac2c0 View commit details
  6. 🤖 chore(package.json): Configure microbundle ESM modern output.

    These changes were automatically generated by a transform whose code can be found at:
      - https://github.com/aureooms/rejuvenate/blob/c0306a0431f42510000cc745a99bc61ad7710a7a/src/transforms/build:microbundle-configure-esmodule.js
    Please contact the author of the transform if you believe there was an error.
    a-flying-potato authored and make-github-pseudonymous-again committed Apr 6, 2021

    Verified

    This commit was signed with the committer’s verified signature.
    Copy the full SHA
    90d6045 View commit details
  7. 🤖 config(babel): Refactor.

    These changes were automatically generated by a transform whose code can be found at:
      - https://github.com/aureooms/rejuvenate/blob/c0306a0431f42510000cc745a99bc61ad7710a7a/src/transforms/babel:refactor-config.js
    Please contact the author of the transform if you believe there was an error.
    a-flying-potato authored and make-github-pseudonymous-again committed Apr 6, 2021

    Verified

    This commit was signed with the committer’s verified signature.
    Copy the full SHA
    593f9d4 View commit details
  8. 🤖 config(package.json): Use custom node environment in coverage script.

    These changes were automatically generated by a transform whose code can be found at:
      - https://github.com/aureooms/rejuvenate/blob/c0306a0431f42510000cc745a99bc61ad7710a7a/src/transforms/coverage:use-custom-node-env.js
    Please contact the author of the transform if you believe there was an error.
    a-flying-potato authored and make-github-pseudonymous-again committed Apr 6, 2021

    Verified

    This commit was signed with the committer’s verified signature.
    Copy the full SHA
    1de0e61 View commit details
  9. 🤖 config(package.json): Add text reporters in coverage script.

    These changes were automatically generated by a transform whose code can be found at:
      - https://github.com/aureooms/rejuvenate/blob/c0306a0431f42510000cc745a99bc61ad7710a7a/src/transforms/coverage:add-text-reporters.js
    Please contact the author of the transform if you believe there was an error.
    a-flying-potato authored and make-github-pseudonymous-again committed Apr 6, 2021

    Verified

    This commit was signed with the committer’s verified signature.
    Copy the full SHA
    3f9cd5c View commit details
  10. Verified

    This commit was signed with the committer’s verified signature.
    Copy the full SHA
    cdaea01 View commit details
Showing with 416 additions and 193 deletions.
  1. +1 −0 .fixpackrc
  2. +25 −0 .github/workflows/ci:test.yml
  3. +1 −1 .github/workflows/gh-pages.yml
  4. +0 −22 .travis.yml
  5. +4 −3 README.md
  6. +0 −12 mangle.json
  7. +49 −46 package.json
  8. +336 −109 yarn.lock
1 change: 1 addition & 0 deletions .fixpackrc
Original file line number Diff line number Diff line change
@@ -23,6 +23,7 @@
"source",
"main",
"module",
"esmodule",
"umd:main",
"unpkg",
"exports",
25 changes: 25 additions & 0 deletions .github/workflows/ci:test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: ci:test
on:
- push
- pull_request
jobs:
test:
name: Continuous integration (tests)
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2

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

- name: Test 🔬
run: yarn ci:test

- name: Publish coverage report 📃
uses: codecov/codecov-action@v1
with:
fail_ci_if_error: true
2 changes: 1 addition & 1 deletion .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@ jobs:
run: npm run build-gh-pages

- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@4.1.0
uses: JamesIves/github-pages-deploy-action@4.1.1
with:
branch: gh-pages
folder: gh-pages
22 changes: 0 additions & 22 deletions .travis.yml

This file was deleted.

7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
[@aureooms/js-compare](https://aureooms.github.io/js-compare)
:balance_scale: [@aureooms/js-compare](https://aureooms.github.io/js-compare)
==

Comparison functions for JavaScript.
See [docs](https://aureooms.github.io/js-compare/index.html).

```js
import { reverse, lexicographical, increasing } from '@aureooms/js-compare' ;
let compare = reverse( lexicographical( increasing ) ) ;
compare( [ 1 , 1 ] , [ 1 , 2 ] ) > 0 ; // true
```

[![License](https://img.shields.io/github/license/aureooms/js-compare.svg)](https://raw.githubusercontent.com/aureooms/js-compare/main/LICENSE)
[![Version](https://img.shields.io/npm/v/@aureooms/js-compare.svg)](https://www.npmjs.org/package/@aureooms/js-compare)
[![Build](https://img.shields.io/travis/aureooms/js-compare/main.svg)](https://travis-ci.com/aureooms/js-compare/branches)
[![Tests](https://img.shields.io/github/workflow/status/aureooms/js-compare/ci:test?event=push&label=tests)](https://github.com/aureooms/js-compare/actions/workflows/ci:test.yml?query=branch:main)
[![Dependencies](https://img.shields.io/david/aureooms/js-compare.svg)](https://david-dm.org/aureooms/js-compare)
[![Dev dependencies](https://img.shields.io/david/dev/aureooms/js-compare.svg)](https://david-dm.org/aureooms/js-compare?type=dev)
[![GitHub issues](https://img.shields.io/github/issues/aureooms/js-compare.svg)](https://github.com/aureooms/js-compare/issues)
@@ -24,6 +25,6 @@ compare( [ 1 , 1 ] , [ 1 , 2 ] ) > 0 ; // true
[![Documentation](https://aureooms.github.io/js-compare/badge.svg)](https://aureooms.github.io/js-compare/source.html)
[![Package size](https://img.shields.io/bundlephobia/minzip/@aureooms/js-compare)](https://bundlephobia.com/result?p=@aureooms/js-compare)

## References
## :scroll: References

- https://en.wikipedia.org/wiki/Lexicographical_order
12 changes: 0 additions & 12 deletions mangle.json

This file was deleted.

95 changes: 49 additions & 46 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@aureooms/js-compare",
"description": "Comparison functions for JavaScript",
"version": "2.0.0",
"version": "2.0.1",
"license": "AGPL-3.0",
"author": "aureooms",
"homepage": "https://aureooms.github.io/js-compare",
@@ -25,6 +25,7 @@
"source": "src/index.js",
"main": "dist/index.js",
"module": "dist/index.module.js",
"esmodule": "dist/index.modern.js",
"umd:main": "dist/index.umd.js",
"unpkg": "dist/index.umd.js",
"exports": {
@@ -42,8 +43,9 @@
"build": "NODE_ENV=production microbundle",
"build-docs": "esdoc",
"build-gh-pages": "npm run build-docs",
"ci:test": "npm run lint-config && npm run lint && npm run cover",
"commit-msg": "commitlint --edit",
"cover": "c8 --all --src src --reporter=lcov npm test",
"cover": "NODE_ENV=cover c8 --all --src src --reporter lcov --reporter text-summary --reporter text npm test",
"debug": "NODE_ENV=debug npm run test -- -st --fail-fast",
"dev": "npm run lint-config-and-fix && npm run lint-and-fix && npm run cover -- -- -st --fail-fast",
"install-hooks": "husky install",
@@ -57,29 +59,28 @@
"prepare": "npm run build",
"prepublishOnly": "pinst --disable",
"release": "np --message ':hatching_chick: release: Bumping to v%s.'",
"test": "ava",
"travis": "npm run lint-config && npm run lint && npm run cover"
"test": "ava"
},
"dependencies": {},
"devDependencies": {
"@aureooms/js-operator": "1.0.2",
"@babel/core": "7.13.10",
"@babel/preset-env": "7.13.10",
"@babel/register": "7.13.8",
"@commitlint/cli": "12.0.1",
"@babel/core": "7.13.14",
"@babel/preset-env": "7.13.12",
"@babel/register": "7.13.14",
"@commitlint/cli": "12.1.1",
"@js-library/commitlint-config": "0.0.4",
"ava": "3.15.0",
"babel-plugin-transform-remove-console": "6.9.4",
"babel-plugin-unassert": "3.0.1",
"babel-preset-power-assert": "3.0.0",
"c8": "7.6.0",
"c8": "7.7.0",
"coveralls": "3.1.0",
"esdoc": "1.1.0",
"esdoc-inject-script-plugin": "1.0.0",
"esdoc-inject-style-plugin": "1.0.0",
"esdoc-standard-plugin": "1.0.0",
"fixpack": "4.0.0",
"husky": "5.1.3",
"husky": "6.0.0",
"lint-staged": "10.5.4",
"microbundle": "0.13.0",
"np": "7.4.0",
@@ -102,40 +103,33 @@
[
"@babel/preset-env",
{
"targets": [
"defaults",
"maintained node versions"
"targets": "current node"
}
]
],
"plugins": [
[
"transform-remove-console",
{
"exclude": [
"log",
"error",
"warn"
]
}
]
],
"env": {
"debug": {
"presets": [
[
"@babel/preset-env",
{
"targets": "current node"
}
],
"babel-preset-power-assert"
]
},
"test": {
"presets": [
[
"@babel/preset-env",
{
"targets": "current node"
}
],
"babel-preset-power-assert"
],
"plugins": [
[
"transform-remove-console",
{
"exclude": [
"debug",
"log",
"error",
"warn"
@@ -144,36 +138,45 @@
]
]
},
"development": {
"test": {
"presets": [
"babel-preset-power-assert"
],
"plugins": [
]
},
"cover": {
"sourceMaps": "both",
"presets": [
"babel-preset-power-assert"
]
},
"development": {
"presets": [
[
"transform-remove-console",
"@babel/preset-env",
{
"exclude": [
"log",
"error",
"warn"
"targets": [
"defaults",
"maintained node versions"
]
}
]
],
"babel-preset-power-assert"
]
},
"production": {
"plugins": [
"babel-plugin-unassert",
"presets": [
[
"transform-remove-console",
"@babel/preset-env",
{
"exclude": [
"log",
"error",
"warn"
"targets": [
"defaults",
"maintained node versions"
]
}
]
],
"plugins": [
"babel-plugin-unassert"
]
}
}
445 changes: 336 additions & 109 deletions yarn.lock

Large diffs are not rendered by default.