diff --git a/.editorconfig b/.editorconfig
index 60d743f..0779e8a 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -121,7 +121,7 @@ indent_style = tab
[*.{md,md.txt}]
indent_style = space
indent_size = 4
-trim_trailing_whitespace = false
+trim_trailing_whitespace = true # Note: this disables using two spaces to force a hard line break, which is permitted in Markdown. As we don't typically follow that practice (TMK), we should be safe to automatically trim.
# Set properties for `usage.txt` files:
[usage.txt]
diff --git a/.github/.keepalive b/.github/.keepalive
new file mode 100644
index 0000000..9d49b87
--- /dev/null
+++ b/.github/.keepalive
@@ -0,0 +1 @@
+2024-12-30T02:34:15.626Z
diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml
index f92a6c5..f4575e9 100644
--- a/.github/workflows/productionize.yml
+++ b/.github/workflows/productionize.yml
@@ -94,8 +94,8 @@ jobs:
node -e "var pkg = require( './package.json' ); pkg.dependencies[ '@stdlib/error-tools-fmtprodmsg' ] = '^$PKG_VERSION'; require( 'fs' ).writeFileSync( 'package.json', JSON.stringify( pkg, null, 2 ) );"
fi
- # Configure git:
- - name: 'Configure git'
+ # Configure Git:
+ - name: 'Configure Git'
run: |
git config --local user.email "noreply@stdlib.io"
git config --local user.name "stdlib-bot"
@@ -191,8 +191,8 @@ jobs:
# Pin action to full length commit SHA
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- # Configure git:
- - name: 'Configure git'
+ # Configure Git:
+ - name: 'Configure Git'
run: |
git config --local user.email "noreply@stdlib.io"
git config --local user.name "stdlib-bot"
@@ -366,8 +366,8 @@ jobs:
# Pin action to full length commit SHA
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- # Configure git:
- - name: 'Configure git'
+ # Configure Git:
+ - name: 'Configure Git'
run: |
git config --local user.email "noreply@stdlib.io"
git config --local user.name "stdlib-bot"
@@ -539,8 +539,8 @@ jobs:
# Pin action to full length commit SHA
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- # Configure git:
- - name: 'Configure git'
+ # Configure Git:
+ - name: 'Configure Git'
run: |
git config --local user.email "noreply@stdlib.io"
git config --local user.name "stdlib-bot"
@@ -735,8 +735,8 @@ jobs:
echo "bump=true" >> $GITHUB_OUTPUT
fi
- # Configure git:
- - name: 'Configure git'
+ # Configure Git:
+ - name: 'Configure Git'
if: steps.check-if-bump.outputs.bump
run: |
git config --local user.email "noreply@stdlib.io"
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index ad3a3e0..2888b88 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -72,8 +72,8 @@ jobs:
node-version: 20
timeout-minutes: 5
- # Configure git:
- - name: 'Configure git'
+ # Configure Git:
+ - name: 'Configure Git'
run: |
git config --local user.email "noreply@stdlib.io"
git config --local user.name "stdlib-bot"
@@ -94,6 +94,10 @@ jobs:
# Replace branch in README.md link definitions for badges with the new version:
find . -type f -name '*.md' -print0 | xargs -0 sed -Ei "s/branch([=:])[^ ]+/branch\1v${NEW_VERSION}/g"
+ # Rewrite CHANGELOG.md to replace "Unreleased" with the new version:
+ sed -Ei "s/Unreleased/${NEW_VERSION}/g" CHANGELOG.md
+ sed -Ei "s/unreleased/v${NEW_VERSION}/g" CHANGELOG.md
+
# Create a new commit and tag:
git add package.json README.md
git commit -m "Release v${NEW_VERSION}"
@@ -202,7 +206,7 @@ jobs:
# Publish package to npm:
- name: 'Publish package to npm'
# Pin action to full length commit SHA
- uses: JS-DevTools/npm-publish@4b07b26a2f6e0a51846e1870223e545bae91c552 # v3.0.1
+ uses: JS-DevTools/npm-publish@19c28f1ef146469e409470805ea4279d47c3d35c # v3.1.1
with:
token: ${{ secrets.NPM_TOKEN }}
access: public
diff --git a/.github/workflows/test_install.yml b/.github/workflows/test_install.yml
index 5273c32..1369fc6 100644
--- a/.github/workflows/test_install.yml
+++ b/.github/workflows/test_install.yml
@@ -50,8 +50,8 @@ jobs:
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
- # Run workflow job if `publish` workflow run is successful or when the workflow is manually run:
- if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}
+ # Run workflow job if `publish` workflow run is successful or when the workflow is manually triggered or on a schedule:
+ if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' }}
# Define the sequence of job steps...
steps:
diff --git a/.github/workflows/test_published_package.yml b/.github/workflows/test_published_package.yml
new file mode 100644
index 0000000..5155542
--- /dev/null
+++ b/.github/workflows/test_published_package.yml
@@ -0,0 +1,105 @@
+#/
+# @license Apache-2.0
+#
+# Copyright (c) 2024 The Stdlib Authors.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#/
+
+# Workflow name:
+name: test_published_package
+
+# Workflow triggers:
+on:
+ # Run workflow on a weekly schedule:
+ schedule:
+ # * is a special character in YAML so you have to quote this string
+ - cron: '31 7 * * 1'
+
+ # Run workflow upon completion of `publish` workflow run:
+ workflow_run:
+ workflows: ["publish"]
+ types: [completed]
+
+ # Allow workflow to be manually run:
+ workflow_dispatch:
+
+# Workflow jobs:
+jobs:
+ test-published:
+ # Define a display name:
+ name: 'Test running examples of published package'
+
+ # Define the type of virtual host machine:
+ runs-on: ubuntu-latest
+
+ # Define environment variables:
+ env:
+ SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
+
+ # Run workflow job if `publish` workflow run is successful or when the workflow is manually triggered or on a schedule:
+ if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' }}
+
+ # Define the job's steps:
+ steps:
+ # Checkout the repository:
+ - name: 'Checkout repository'
+ uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
+
+ # Install Node.js:
+ - name: 'Install Node.js'
+ uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
+ with:
+ node-version: 20
+ timeout-minutes: 5
+
+ # Create test directory and run examples:
+ - name: 'Create test directory and run examples'
+ run: |
+ cd ..
+ mkdir test-published
+ cd test-published
+
+ # Copy example file:
+ cp $GITHUB_WORKSPACE/examples/index.js .
+
+ # Create a minimal package.json
+ echo '{
+ "name": "test-published",
+ "version": "1.0.0",
+ "main": "index.js",
+ "dependencies": {}
+ }' > package.json
+
+ # Get package name and modify example file:
+ PACKAGE_NAME=$(jq -r '.name' $GITHUB_WORKSPACE/package.json)
+ ESCAPED_PACKAGE_NAME=$(echo "$PACKAGE_NAME" | sed 's/[\/&]/\\&/g')
+
+ sed -i "s/require( '.\/..\/lib' )/require( '$ESCAPED_PACKAGE_NAME' )/g" index.js
+
+ # Extract and install dependencies:
+ DEPS=$(grep -oP "require\(\s*'([^']+)'\s*\)" index.js | sed "s/require(\s*'//" | sed "s/'\s*)//" | grep -v "^\.")
+ for dep in $DEPS; do
+ npm install $dep --save
+ done
+
+ # Run the example:
+ node index.js
+
+ # Send Slack notification if job fails:
+ - name: 'Send notification to Slack in case of failure'
+ uses: 8398a7/action-slack@28ba43ae48961b90635b50953d216767a6bea486 # v3.16.2
+ with:
+ status: ${{ job.status }}
+ channel: '#npm-ci'
+ if: failure()
diff --git a/.gitignore b/.gitignore
index 49b206b..4fdc97c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -101,6 +101,8 @@ docs/**/node_modules/
pids
*.pid
*.seed
+yarn.lock
+package-lock.json
# Typescript #
##############
diff --git a/.npmrc b/.npmrc
index 5af9067..58dbd10 100644
--- a/.npmrc
+++ b/.npmrc
@@ -27,5 +27,5 @@ shrinkwrap = false
# Disable automatically "saving" dependencies on install:
save = false
-# Generate provenance metadata:
-provenance = true
+# Do not generate provenance metadata:
+provenance = false
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4848e71..4d52680 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,4 +2,174 @@
> Package changelog.
-See [GitHub Releases](https://github.com/stdlib-js/array-nans/releases) for the changelog.
\ No newline at end of file
+
+
+## Unreleased (2024-12-30)
+
+
+
+### Commits
+
+
+
+- [`75d4f83`](https://github.com/stdlib-js/stdlib/commit/75d4f83cb85610d23a04dc21a03f8075f6d3665f) - **refactor:** update require and include paths _(by Athan Reines)_
+
+
+
+
+
+
+
+
+
+### Contributors
+
+A total of 1 person contributed to this release. Thank you to this contributor:
+
+- Athan Reines
+
+
+
+
+
+
+
+
+
+
+
+## 0.2.1 (2024-02-25)
+
+No changes reported for this release.
+
+
+
+
+
+
+
+## 0.2.0 (2024-02-15)
+
+
+
+### Features
+
+- [`e25b23b`](https://github.com/stdlib-js/stdlib/commit/e25b23b917ee6e387722db7192d22e4a70222da0) - rename type definitions for array and ndarray data types
+
+
+
+
+
+
+
+### BREAKING CHANGES
+
+- [`e25b23b`](https://github.com/stdlib-js/stdlib/commit/e25b23b917ee6e387722db7192d22e4a70222da0): rename type definitions for array and ndarray data types
+
+ - In order to migrate, users should update their implementations to
+ use the latest naming conventions. The affected type definitions
+ are aliases for individual data type strings, so their should be
+ no behavioral changes.
+
+
+
+
+
+
+
+### Commits
+
+
+
+- [`6434bf2`](https://github.com/stdlib-js/stdlib/commit/6434bf2c8e4a2b83197d068e9478e94991f79909) - **refactor:** query default dtype _(by Athan Reines)_
+- [`e25b23b`](https://github.com/stdlib-js/stdlib/commit/e25b23b917ee6e387722db7192d22e4a70222da0) - **feat:** rename type definitions for array and ndarray data types _(by Athan Reines)_
+- [`e3fc2d4`](https://github.com/stdlib-js/stdlib/commit/e3fc2d48bf55690a3ead6cc37eed3472f34561c0) - **docs:** update links _(by Athan Reines)_
+
+
+
+
+
+
+
+
+
+### Contributors
+
+A total of 1 person contributed to this release. Thank you to this contributor:
+
+- Athan Reines
+
+
+
+
+
+
+
+
+
+
+
+## 0.1.0 (2023-09-24)
+
+
+
+### Features
+
+- [`e29732d`](https://github.com/stdlib-js/stdlib/commit/e29732dee616e2d94e91f87f78afd8aceb806017) - update minimum TypeScript version
+
+
+
+
+
+
+
+### BREAKING CHANGES
+
+- [`e29732d`](https://github.com/stdlib-js/stdlib/commit/e29732dee616e2d94e91f87f78afd8aceb806017): update minimum TypeScript version to 4.1
+
+ - To migrate, users should upgrade their TypeScript version to at least version 4.1.
+
+
+
+
+
+
+
+### Commits
+
+
+
+- [`e29732d`](https://github.com/stdlib-js/stdlib/commit/e29732dee616e2d94e91f87f78afd8aceb806017) - **feat:** update minimum TypeScript version _(by Philipp Burckhardt)_
+
+
+
+
+
+
+
+
+
+### Contributors
+
+A total of 1 person contributed to this release. Thank you to this contributor:
+
+- Philipp Burckhardt
+
+
+
+
+
+
+
+
+
+
+
+## 0.0.1 (2023-02-06)
+
+No changes reported for this release.
+
+
+
+
+
diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index a44d7ac..173c07b 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -2,9 +2,14 @@
#
# Contributors listed in alphabetical order.
+Aadish Jain
+Aayush Khanna
+Abhijit Raut
Adarsh Palaskar
Aditya Sapra
-AgPriyanshu18 <113460573+AgPriyanshu18@users.noreply.github.com>
+Ahmed Atwa
+Ahmed Kashkoush
+Ahmed Khaled
Aleksandr <112382387+alextes90@users.noreply.github.com>
Ali Salesi
Aman Bhansali
@@ -20,17 +25,24 @@ Christopher Dambamuromo
Dan Rose
Daniel Killenberger
Daniel Yu <40680511+Daniel777y@users.noreply.github.com>
+Debashis Maharana
+Desh Deepak Kant <118960904+DeshDeepakKant@users.noreply.github.com>
+Divyansh Seth <59174836+sethdivyansh@users.noreply.github.com>
+Dominic Lim <46486515+domlimm@users.noreply.github.com>
Dominik Moritz
Dorrin Sotoudeh
EuniceSim142 <77243938+EuniceSim142@users.noreply.github.com>
Frank Kovacs
Golden Kumar <103646877+AuenKr@users.noreply.github.com>
Gunj Joshi
+Gururaj Gurram <143020143+gururaj1512@users.noreply.github.com>
+HarshaNP <96897754+GittyHarsha@users.noreply.github.com>
Harshita Kalani
Hridyanshu <124202756+HRIDYANSHU054@users.noreply.github.com>
Jaimin Godhani <112328542+Jai0401@users.noreply.github.com>
James Gelok
Jaysukh Makvana
+Jenish Thapa <141203631+jenish-thapa@users.noreply.github.com>
Jithin KS
Joel Mathew Koshy
Joey Reed
@@ -38,57 +50,77 @@ Jordan Gallivan <115050475+Jordan-Gallivan@users.noreply.github.com>
Joris Labie
Justin Dennison
Karthik Prakash <116057817+skoriop@users.noreply.github.com>
-Khaldon
+Kohantika Nath <145763549+kohantikanath@users.noreply.github.com>
Krishnendu Das <86651039+itskdhere@users.noreply.github.com>
-Lovelin <100030865+lovelindhoni@users.noreply.github.com>
+Kshitij-Dale <152467202+Kshitij-Dale@users.noreply.github.com>
+Lovelin Dhoni J B <100030865+lovelindhoni@users.noreply.github.com>
Manik Sharma
+Manvith M <148960168+manvith2003@users.noreply.github.com>
Marcus Fantham
Matt Cochrane
Mihir Pandit <129577900+MSP20086@users.noreply.github.com>
Milan Raj
+Mohammad Kaif
Momtchil Momtchev
Muhammad Haris
Naresh Jagadeesan
-NightKnight
+Naveen Kumar
+Neeraj Pathak
+Nishant Shinde <97207366+nishant-s7@users.noreply.github.com>
Nithin Katta <88046362+nithinkatta@users.noreply.github.com>
+Nourhan Hasan <109472010+TheNourhan@users.noreply.github.com>
Ognjen Jevremović
Oneday12323 <107678750+Oneday12323@users.noreply.github.com>
+Ori Miles <97595296+orimiles5@users.noreply.github.com>
Philipp Burckhardt
Prajwal Kulkarni
Pranav Goswami
-Praneki <97080887+PraneGIT@users.noreply.github.com>
-Pratik <97464067+Pratik772846@users.noreply.github.com>
-Priyansh <88396544+itsspriyansh@users.noreply.github.com>
+Pranjal Jha <97080887+PraneGIT@users.noreply.github.com>
+Prashant Kumar Yadav <144602492+0PrashantYadav0@users.noreply.github.com>
+Pratik Singh <97464067+Pratik772846@users.noreply.github.com>
+Pratyush Kumar Chouhan
+Priyansh Prajapati <88396544+itsspriyansh@users.noreply.github.com>
+Priyanshu Agarwal <113460573+AgPriyanshu18@users.noreply.github.com>
Pushpendra Chandravanshi
Raunak Kumar Gupta
Rejoan Sardar <119718513+Rejoan-Sardar@users.noreply.github.com>
Ricky Reusser
+Ridam Garg <67867319+RidamGarg@users.noreply.github.com>
+Rishav <115060907+rishav2404@users.noreply.github.com>
Robert Gislason
Roman Stetsyk <25715951+romanstetsyk@users.noreply.github.com>
-Rutam <138517416+performant23@users.noreply.github.com>
+Rutam Kathale <138517416+performant23@users.noreply.github.com>
+Ruthwik Chikoti <145591715+ruthwikchikoti@users.noreply.github.com>
Ryan Seal
+Rylan Yang <137365285+rylany27@users.noreply.github.com>
Sai Srikar Dumpeti <80447788+the-r3aper7@users.noreply.github.com>
+Sarthak Paandey <145528240+SarthakPaandey@users.noreply.github.com>
+Saurabh Singh
Seyyed Parsa Neshaei
Shashank Shekhar Singh
-Shivam <11shivam00@gmail.com>
+Shivam Ahir <11shivam00@gmail.com>
Shraddheya Shendre
Shubh Mehta <93862397+Shubh942@users.noreply.github.com>
Shubham Mishra
Sivam Das <100067002+Sivam2313@users.noreply.github.com>
-Snehil Shah <130062020+Snehil-Shah@users.noreply.github.com>
+Snehil Shah
Soumajit Chatterjee <121816890+soumajit23@users.noreply.github.com>
Spandan Barve
Stephannie Jiménez Gacha
-Suraj kumar <125961509+kumarsuraj212003@users.noreply.github.com>
+Suraj Kumar <125961509+kumarsuraj212003@users.noreply.github.com>
Tirtadwipa Manunggal
Tudor Pagu <104032457+tudor-pagu@users.noreply.github.com>
+Tufailahmed Bargir <142114244+Tufailahmed-Bargir@users.noreply.github.com>
Utkarsh
Utkarsh Raj
+UtkershBasnet <119008923+UtkershBasnet@users.noreply.github.com>
+Vaibhav Patel <98279986+noobCoderVP@users.noreply.github.com>
Varad Gupta
+Vinit Pandit <106718914+MeastroZI@users.noreply.github.com>
+Vivek maurya <155618190+vivekmaurya001@users.noreply.github.com>
Xiaochuan Ye
+Yaswanth Kosuru <116426380+yaswanthkosuru@users.noreply.github.com>
Yernar Yergaziyev
-naveen
-nishant-s7 <97207366+nishant-s7@users.noreply.github.com>
-orimiles5 <97595296+orimiles5@users.noreply.github.com>
+olenkabilonizhka <62379231+olenkabilonizhka@users.noreply.github.com>
rainn <88160429+AmCodesLame@users.noreply.github.com>
rei2hu
diff --git a/package.json b/package.json
index 35b3952..a4e972b 100644
--- a/package.json
+++ b/package.json
@@ -37,35 +37,35 @@
"url": "https://github.com/stdlib-js/stdlib/issues"
},
"dependencies": {
- "@stdlib/array-base-assert-contains": "^0.2.1",
- "@stdlib/array-defaults": "^0.2.1",
- "@stdlib/array-dtypes": "^0.2.1",
+ "@stdlib/array-base-assert-contains": "^0.2.2",
+ "@stdlib/array-defaults": "^0.3.0",
+ "@stdlib/array-dtypes": "^0.3.0",
"@stdlib/array-full": "^0.2.1",
- "@stdlib/complex-float32-ctor": "github:stdlib-js/complex-float32-ctor#main",
- "@stdlib/complex-float64-ctor": "github:stdlib-js/complex-float64-ctor#main",
- "@stdlib/string-format": "^0.2.1",
- "@stdlib/types": "^0.3.2",
- "@stdlib/error-tools-fmtprodmsg": "^0.2.1"
+ "@stdlib/complex-float32-ctor": "^0.0.2",
+ "@stdlib/complex-float64-ctor": "^0.0.3",
+ "@stdlib/string-format": "^0.2.2",
+ "@stdlib/types": "^0.4.3",
+ "@stdlib/error-tools-fmtprodmsg": "^0.2.2"
},
"devDependencies": {
- "@stdlib/array-complex128": "^0.2.1",
- "@stdlib/array-complex64": "^0.2.1",
- "@stdlib/array-float32": "^0.2.1",
- "@stdlib/array-float64": "^0.2.1",
- "@stdlib/array-typed-float-dtypes": "^0.2.1",
- "@stdlib/assert-instance-of": "^0.2.1",
- "@stdlib/assert-is-array": "^0.2.1",
- "@stdlib/assert-is-typed-array": "^0.2.1",
- "@stdlib/assert-is-typed-array-like": "^0.2.1",
- "@stdlib/math-base-assert-is-nan": "^0.2.1",
- "@stdlib/math-base-assert-is-nanf": "^0.2.1",
- "@stdlib/math-base-special-pow": "^0.2.1",
- "@stdlib/strided-base-reinterpret-complex128": "^0.2.1",
- "@stdlib/strided-base-reinterpret-complex64": "^0.2.0",
+ "@stdlib/array-complex128": "^0.3.0",
+ "@stdlib/array-complex64": "^0.3.0",
+ "@stdlib/array-float32": "^0.2.2",
+ "@stdlib/array-float64": "^0.2.2",
+ "@stdlib/array-typed-float-dtypes": "^0.2.2",
+ "@stdlib/assert-instance-of": "^0.2.2",
+ "@stdlib/assert-is-array": "^0.2.2",
+ "@stdlib/assert-is-typed-array": "^0.2.2",
+ "@stdlib/assert-is-typed-array-like": "^0.2.2",
+ "@stdlib/math-base-assert-is-nan": "^0.2.2",
+ "@stdlib/math-base-assert-is-nanf": "^0.2.2",
+ "@stdlib/math-base-special-pow": "^0.3.0",
+ "@stdlib/strided-base-reinterpret-complex128": "^0.2.2",
+ "@stdlib/strided-base-reinterpret-complex64": "^0.2.1",
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",
"istanbul": "^0.4.1",
"tap-min": "git+https://github.com/Planeshifter/tap-min.git",
- "@stdlib/bench-harness": "^0.2.1"
+ "@stdlib/bench-harness": "^0.2.2"
},
"engines": {
"node": ">=0.10.0",