From 507babafdfc2252d2008adb25725113cbbdd70f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Ooms?= Date: Tue, 23 Mar 2021 20:29:15 +0100 Subject: [PATCH 1/7] :hammer: config(build): Mangle _limbs_in_base to c. --- mangle.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mangle.json b/mangle.json index ddef611..ae30e15 100644 --- a/mangle.json +++ b/mangle.json @@ -10,7 +10,8 @@ "props": { "$_base": "r", "$_is_negative": "s", - "$_limbs": "l" + "$_limbs": "l", + "$_limbs_in_base": "c" } } } \ No newline at end of file From 1e4e010389276ccec6968c1765d92682dc729f29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Ooms?= Date: Tue, 23 Mar 2021 20:30:37 +0100 Subject: [PATCH 2/7] :hammer: config(build): Avoid mangling dependency props. See https://github.com/developit/microbundle/issues/819. --- mangle.json | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/mangle.json b/mangle.json index ae30e15..fa06ea5 100644 --- a/mangle.json +++ b/mangle.json @@ -2,7 +2,16 @@ "minify": { "mangle": { "properties": { - "regex": "^_[^_]" + "regex": "^_[^_]", + "reserved": [ + "_zeros", + "_trim_positive", + "_sub", + "_pow_double", + "_alloc", + "_copy", + "_idivmod" + ] } } }, From 611d266e725a8fd6b14cac53c08ca98d9874e4e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Ooms?= Date: Tue, 23 Mar 2021 20:40:13 +0100 Subject: [PATCH 3/7] :hatching_chick: release: Bumping to v10.0.1. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a469a01..e7ba479 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@aureooms/js-integer", "description": "Integers for JavaScript", - "version": "10.0.0", + "version": "10.0.1", "license": "AGPL-3.0", "author": "Aurélien Ooms ", "homepage": "https://aureooms.github.io/js-integer", From 2bde5942a165c94ea136d9597ee4fec322d01280 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Ooms?= Date: Tue, 23 Mar 2021 21:00:42 +0100 Subject: [PATCH 4/7] :books: docs: Remove reference to unneeded regenerator runtime. --- doc/manual/usage.md | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/doc/manual/usage.md b/doc/manual/usage.md index 96501af..e0a61b3 100644 --- a/doc/manual/usage.md +++ b/doc/manual/usage.md @@ -1,18 +1,10 @@ # Usage -The code needs a ES2015+ polyfill to work, for example -[regenerator-runtime/runtime](https://babeljs.io/docs/usage/polyfill). +Require the library where needed ```js -require( 'regenerator-runtime/runtime' ) ; +const { ZZ } = require( '@aureooms/js-integer' ) ; // or -import 'regenerator-runtime/runtime.js' ; -``` - -Then -```js -const integer = require( '@aureooms/js-integer' ) ; -// or -import * as integer from '@aureooms/js-integer' ; +import { ZZ } from '@aureooms/js-integer' ; ``` ## Notation From 0b27723d27e778eed6e463720c90b4d71fabb06d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Ooms?= Date: Tue, 23 Mar 2021 21:01:23 +0100 Subject: [PATCH 5/7] :package: deps: Remove unused devDependencies. --- package.json | 4 ---- yarn.lock | 20 -------------------- 2 files changed, 24 deletions(-) diff --git a/package.json b/package.json index e7ba479..98d5f58 100644 --- a/package.json +++ b/package.json @@ -94,12 +94,8 @@ "@aureooms/js-integer-big-endian": "^11.0.1" }, "devDependencies": { - "@aureooms/js-algorithms": "3.0.7", - "@aureooms/js-array": "4.0.0", "@aureooms/js-itertools": "5.0.2", - "@aureooms/js-operator": "1.0.2", "@aureooms/js-random": "2.0.0", - "@aureooms/js-string": "1.0.0", "@babel/core": "7.13.10", "@babel/preset-env": "7.13.12", "@babel/register": "7.13.8", diff --git a/yarn.lock b/yarn.lock index 07bafce..738470d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,16 +2,6 @@ # yarn lockfile v1 -"@aureooms/js-algorithms@3.0.7": - version "3.0.7" - resolved "https://registry.yarnpkg.com/@aureooms/js-algorithms/-/js-algorithms-3.0.7.tgz#5c9b857396a3c5784f34f956370483dcc06adef8" - integrity sha1-XJuFc5ajxXhPNPlWNwSD3MBq3vg= - -"@aureooms/js-array@4.0.0": - version "4.0.0" - resolved "https://registry.yarnpkg.com/@aureooms/js-array/-/js-array-4.0.0.tgz#ea64b7c788644f40bbb92259a6098ac14a4eca6c" - integrity sha1-6mS3x4hkT0C7uSJZpgmKwUpOymw= - "@aureooms/js-collections-deque@^6.0.1": version "6.0.1" resolved "https://registry.yarnpkg.com/@aureooms/js-collections-deque/-/js-collections-deque-6.0.1.tgz#ba89379ac826539047f768e1fb84ed4d2c1f829e" @@ -37,21 +27,11 @@ "@aureooms/js-collections-deque" "^6.0.1" "@aureooms/js-error" "^5.0.2" -"@aureooms/js-operator@1.0.2": - version "1.0.2" - resolved "https://registry.yarnpkg.com/@aureooms/js-operator/-/js-operator-1.0.2.tgz#0786d77d9977823ae7bc04360a315c45bb4c1e65" - integrity sha1-B4bXfZl3gjrnvAQ2CjFcRbtMHmU= - "@aureooms/js-random@2.0.0": version "2.0.0" resolved "https://registry.yarnpkg.com/@aureooms/js-random/-/js-random-2.0.0.tgz#f62c6954ed79bd9a520197125ee3cfbe14b00d72" integrity sha1-9ixpVO15vZpSAZcSXuPPvhSwDXI= -"@aureooms/js-string@1.0.0": - version "1.0.0" - resolved "https://registry.yarnpkg.com/@aureooms/js-string/-/js-string-1.0.0.tgz#3aaa0bbe68c01060ec81c2a9e58d9bc11b8cb14b" - integrity sha512-dG6tYw77EbYJNqwRgdPPQ469EuV/pEpDdpPmOxKTGhZUyPTImILRyPZHNRYQHuzGT8jAds+9vn/Um5hVaair0w== - "@babel/code-frame@7.12.11": version "7.12.11" resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.12.11.tgz#f4ad435aa263db935b8f10f2c552d23fb716a63f" From c862efb6288a45a1095b10c38c241da2d87f42a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Ooms?= Date: Mon, 26 Apr 2021 13:45:55 +0200 Subject: [PATCH 6/7] :books: docs: Update GitHub pages links. --- README.md | 6 +++--- package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f784672..452471c 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -:zzz: [@aureooms/js-integer](https://aureooms.github.io/js-integer) +:zzz: [@aureooms/js-integer](https://make-github-pseudonymous-again.github.io/js-integer) ==

@@ -13,7 +13,7 @@ User:Alejo2083

Integers for JavaScript. -See [docs](https://aureooms.github.io/js-integer). +See [docs](https://make-github-pseudonymous-again.github.io/js-integer). Parent is [@aureooms/js-algorithms](https://github.com/aureooms/js-algorithms). ```js @@ -35,7 +35,7 @@ a.mul( b ).toString( ) ; // '-903954021577363596419770144565091' [![Code maintainability](https://img.shields.io/codeclimate/maintainability/aureooms/js-integer.svg)](https://codeclimate.com/github/aureooms/js-integer/trends/churn) [![Code coverage (cov)](https://img.shields.io/codecov/c/gh/aureooms/js-integer/main.svg)](https://codecov.io/gh/aureooms/js-integer) [![Code technical debt](https://img.shields.io/codeclimate/tech-debt/aureooms/js-integer.svg)](https://codeclimate.com/github/aureooms/js-integer/trends/technical_debt) -[![Documentation](https://aureooms.github.io/js-integer/badge.svg)](https://aureooms.github.io/js-integer/source.html) +[![Documentation](https://make-github-pseudonymous-again.github.io/js-integer/badge.svg)](https://make-github-pseudonymous-again.github.io/js-integer/source.html) [![Package size](https://img.shields.io/bundlephobia/minzip/@aureooms/js-integer)](https://bundlephobia.com/result?p=@aureooms/js-integer) ## :baby: Children diff --git a/package.json b/package.json index 98d5f58..effb1e5 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "version": "10.0.1", "license": "AGPL-3.0", "author": "Aurélien Ooms ", - "homepage": "https://aureooms.github.io/js-integer", + "homepage": "https://make-github-pseudonymous-again.github.io/js-integer", "repository": { "type": "git", "url": "https://github.com/aureooms/js-integer" From cf6e217800574c8125ad99ff6b2823e8b904082d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Ooms?= Date: Mon, 26 Apr 2021 16:07:51 +0200 Subject: [PATCH 7/7] :unamused: chore: Fix broken links, badges, and dependencies. --- README.md | 24 ++++++++++++------------ doc/manual/example.md | 2 +- doc/scripts/header.js | 3 ++- package.json | 4 ++-- renovate.json | 2 +- 5 files changed, 18 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 452471c..709ac2c 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ User:Alejo2083 Integers for JavaScript. See [docs](https://make-github-pseudonymous-again.github.io/js-integer). -Parent is [@aureooms/js-algorithms](https://github.com/aureooms/js-algorithms). +Parent is [@aureooms/js-algorithms](https://github.com/make-github-pseudonymous-again/js-algorithms). ```js import { ZZ } from '@aureooms/js-integer' ; @@ -23,18 +23,18 @@ const b = ZZ.from( '-302940923028393' ) ; a.mul( b ).toString( ) ; // '-903954021577363596419770144565091' ``` -[![License](https://img.shields.io/github/license/aureooms/js-integer.svg)](https://raw.githubusercontent.com/aureooms/js-integer/main/LICENSE) +[![License](https://img.shields.io/github/license/make-github-pseudonymous-again/js-integer.svg)](https://raw.githubusercontent.com/make-github-pseudonymous-again/js-integer/main/LICENSE) [![Version](https://img.shields.io/npm/v/@aureooms/js-integer.svg)](https://www.npmjs.org/package/@aureooms/js-integer) -[![Build](https://img.shields.io/travis/aureooms/js-integer/main.svg)](https://travis-ci.com/aureooms/js-integer/branches) -[![Dependencies](https://img.shields.io/david/aureooms/js-integer.svg)](https://david-dm.org/aureooms/js-integer) -[![Dev dependencies](https://img.shields.io/david/dev/aureooms/js-integer.svg)](https://david-dm.org/aureooms/js-integer?type=dev) -[![GitHub issues](https://img.shields.io/github/issues/aureooms/js-integer.svg)](https://github.com/aureooms/js-integer/issues) +[![Build](https://img.shields.io/travis/make-github-pseudonymous-again/js-integer/main.svg)](https://travis-ci.com/make-github-pseudonymous-again/js-integer/branches) +[![Dependencies](https://img.shields.io/david/make-github-pseudonymous-again/js-integer.svg)](https://david-dm.org/make-github-pseudonymous-again/js-integer) +[![Dev dependencies](https://img.shields.io/david/dev/make-github-pseudonymous-again/js-integer.svg)](https://david-dm.org/make-github-pseudonymous-again/js-integer?type=dev) +[![GitHub issues](https://img.shields.io/github/issues/make-github-pseudonymous-again/js-integer.svg)](https://github.com/make-github-pseudonymous-again/js-integer/issues) [![Downloads](https://img.shields.io/npm/dm/@aureooms/js-integer.svg)](https://www.npmjs.org/package/@aureooms/js-integer) -[![Code issues](https://img.shields.io/codeclimate/issues/aureooms/js-integer.svg)](https://codeclimate.com/github/aureooms/js-integer/issues) -[![Code maintainability](https://img.shields.io/codeclimate/maintainability/aureooms/js-integer.svg)](https://codeclimate.com/github/aureooms/js-integer/trends/churn) -[![Code coverage (cov)](https://img.shields.io/codecov/c/gh/aureooms/js-integer/main.svg)](https://codecov.io/gh/aureooms/js-integer) -[![Code technical debt](https://img.shields.io/codeclimate/tech-debt/aureooms/js-integer.svg)](https://codeclimate.com/github/aureooms/js-integer/trends/technical_debt) +[![Code issues](https://img.shields.io/codeclimate/issues/make-github-pseudonymous-again/js-integer.svg)](https://codeclimate.com/github/make-github-pseudonymous-again/js-integer/issues) +[![Code maintainability](https://img.shields.io/codeclimate/maintainability/make-github-pseudonymous-again/js-integer.svg)](https://codeclimate.com/github/make-github-pseudonymous-again/js-integer/trends/churn) +[![Code coverage (cov)](https://img.shields.io/codecov/c/gh/make-github-pseudonymous-again/js-integer/main.svg)](https://codecov.io/gh/make-github-pseudonymous-again/js-integer) +[![Code technical debt](https://img.shields.io/codeclimate/tech-debt/make-github-pseudonymous-again/js-integer.svg)](https://codeclimate.com/github/make-github-pseudonymous-again/js-integer/trends/technical_debt) [![Documentation](https://make-github-pseudonymous-again.github.io/js-integer/badge.svg)](https://make-github-pseudonymous-again.github.io/js-integer/source.html) [![Package size](https://img.shields.io/bundlephobia/minzip/@aureooms/js-integer)](https://bundlephobia.com/result?p=@aureooms/js-integer) @@ -44,8 +44,8 @@ The current underlying implementation uses big endian order. There is no alternative for the moment. - [ ] [BigInt](https://developer.mozilla.org/en-US/docs/Glossary/BigInt) - - [x] [@aureooms/js-integer-big-endian](https://github.com/aureooms/js-integer-big-endian) - - [ ] [@aureooms/js-integer-little-endian](https://github.com/aureooms/js-integer-little-endian) + - [x] [@aureooms/js-integer-big-endian](https://github.com/make-github-pseudonymous-again/js-integer-big-endian) + - [ ] [@aureooms/js-integer-little-endian](https://github.com/make-github-pseudonymous-again/js-integer-little-endian) ## :scroll: Reference diff --git a/doc/manual/example.md b/doc/manual/example.md index 193d441..476cb4e 100644 --- a/doc/manual/example.md +++ b/doc/manual/example.md @@ -1,6 +1,6 @@ # Examples -> More examples in [the test files](https://github.com/aureooms/js-integer/tree/main/test/src). +> More examples in [the test files](https://github.com/make-github-pseudonymous-again/js-integer/tree/main/test/src). ```js import { ZZ } from '@aureooms/js-integer' ; diff --git a/doc/scripts/header.js b/doc/scripts/header.js index 525d627..8cdb565 100644 --- a/doc/scripts/header.js +++ b/doc/scripts/header.js @@ -17,7 +17,8 @@ domReady(() => { header.insertBefore(projectname, header.firstChild); const testlink = document.querySelector('header > a[data-ice="testLink"]'); - testlink.href = 'https://coveralls.io/github/aureooms/js-integer'; + testlink.href = + 'https://coveralls.io/github/make-github-pseudonymous-again/js-integer'; testlink.target = '_BLANK'; const searchBox = document.querySelector('.search-box'); diff --git a/package.json b/package.json index effb1e5..54801bc 100644 --- a/package.json +++ b/package.json @@ -7,10 +7,10 @@ "homepage": "https://make-github-pseudonymous-again.github.io/js-integer", "repository": { "type": "git", - "url": "https://github.com/aureooms/js-integer" + "url": "https://github.com/make-github-pseudonymous-again/js-integer" }, "bugs": { - "url": "https://github.com/aureooms/js-integer/issues" + "url": "https://github.com/make-github-pseudonymous-again/js-integer/issues" }, "keywords": [ "abitrary", diff --git a/renovate.json b/renovate.json index b850c4b..3e0cba6 100644 --- a/renovate.json +++ b/renovate.json @@ -1,5 +1,5 @@ { "extends": [ - "github>aureooms/renovate-config-js-library" + "github>make-github-pseudonymous-again/renovate-config-js-library" ] }