diff --git a/.github/.keepalive b/.github/.keepalive
deleted file mode 100644
index 1ebf216..0000000
--- a/.github/.keepalive
+++ /dev/null
@@ -1 +0,0 @@
-2024-06-01T01:26:58.103Z
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index ad3a3e0..b1d4bb8 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -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}"
diff --git a/CHANGELOG.md b/CHANGELOG.md
index d99d35a..fd09080 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,4 +2,95 @@
> Package changelog.
-See [GitHub Releases](https://github.com/stdlib-js/ndarray-orders/releases) for the changelog.
\ No newline at end of file
+
+
+## Unreleased (2024-06-09)
+
+
+
+### Commits
+
+
+
+- [`539fc72`](https://github.com/stdlib-js/stdlib/commit/539fc725d1fea6738862de98e3f3c6385fbdc0e6) - **style:** fix indentation _(by Athan Reines)_
+- [`71b0621`](https://github.com/stdlib-js/stdlib/commit/71b06218afbce673efa51c4704f26637a27a1d1c) - **refactor:** ensure enumeration constants match BLAS layouts _(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-22)
+
+
+
+### Features
+
+- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0) - update minimum TypeScript version
+
+
+
+
+
+
+
+### BREAKING CHANGES
+
+- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version
+- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1
+
+ - To migrate, users should upgrade their TypeScript version to at least version 4.1.
+
+
+
+
+
+
+
+### Commits
+
+
+
+- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0) - **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
+
+
+
+
+
+
+
+
+
diff --git a/README.md b/README.md
index 17d640e..efe788f 100644
--- a/README.md
+++ b/README.md
@@ -79,10 +79,10 @@ Returns a list of ndarray orders.
```javascript
var out = orders();
-// returns [ 'row-major', 'column-major' ]
+// e.g., returns [ 'row-major', 'column-major' ]
```
-The output `array` contains the following orders:
+The output array contains the following orders:
- `row-major`: row-major (C-style) order.
- `column-major`: column-major (Fortran-style) order.
@@ -108,20 +108,12 @@ The output `array` contains the following orders:
```javascript
-var indexOf = require( '@stdlib/utils-index-of' );
+var contains = require( '@stdlib/array-base-assert-contains' ).factory;
var orders = require( '@stdlib/ndarray-orders' );
-var ORDERS = orders();
-var bool;
+var isOrder = contains( orders() );
-function isOrder( str ) {
- if ( indexOf( ORDERS, str ) === -1 ) {
- return false;
- }
- return true;
-}
-
-bool = isOrder( 'row-major' );
+var bool = isOrder( 'row-major' );
// returns true
bool = isOrder( 'column-major' );
diff --git a/dist/index.js b/dist/index.js
index bfd1f07..4abe0d0 100644
--- a/dist/index.js
+++ b/dist/index.js
@@ -1,8 +1,8 @@
-"use strict";var e=function(s,r){return function(){return r||s((r={exports:{}}).exports,r),r.exports}};var t=e(function(p,m){m.exports=["row-major","column-major"]});var o=e(function(x,u){
-var c=t();function j(){return c.slice()}u.exports=j
-});var a=e(function(R,n){
-function l(){return{"row-major":1,"column-major":2}}n.exports=l
-});var q=require('@stdlib/utils-define-nonenumerable-read-only-property/dist'),i=o(),v=a();q(i,"enum",v);module.exports=i;
+"use strict";var e=function(s,r){return function(){return r||s((r={exports:{}}).exports,r),r.exports}};var o=e(function(x,c){c.exports=["row-major","column-major"]});var a=e(function(O,u){
+var j=o();function l(){return j.slice()}u.exports=l
+});var m=e(function(R,n){
+var v=require('@stdlib/blas-base-layouts/dist').enum,t=v();function q(){return{"row-major":t["row-major"],"column-major":t["column-major"]}}n.exports=q
+});var d=require('@stdlib/utils-define-nonenumerable-read-only-property/dist'),i=a(),p=m();d(i,"enum",p);module.exports=i;
/** @license Apache-2.0 */
/** @license Apache-2.0 */
//# sourceMappingURL=index.js.map
diff --git a/dist/index.js.map b/dist/index.js.map
index fca7adc..540fce9 100644
--- a/dist/index.js.map
+++ b/dist/index.js.map
@@ -1,7 +1,7 @@
{
"version": 3,
"sources": ["../lib/orders.json", "../lib/main.js", "../lib/enum.js", "../lib/index.js"],
- "sourcesContent": ["[\n\t\"row-major\",\n\t\"column-major\"\n]\n", "/**\n* @license Apache-2.0\n*\n* Copyright (c) 2018 The Stdlib Authors.\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n\n'use strict';\n\n// MODULES //\n\nvar ORDERS = require( './orders.json' );\n\n\n// MAIN //\n\n/**\n* Returns a list of ndarray orders.\n*\n* @returns {StringArray} list of ndarray orders\n*\n* @example\n* var list = orders();\n* // returns [ 'row-major', 'column-major' ]\n*/\nfunction orders() {\n\treturn ORDERS.slice();\n}\n\n\n// EXPORTS //\n\nmodule.exports = orders;\n", "/**\n* @license Apache-2.0\n*\n* Copyright (c) 2021 The Stdlib Authors.\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n\n'use strict';\n\n// MAIN //\n\n/**\n* Returns an object mapping supported orders to integer values for purposes of C inter-operation.\n*\n* ## Notes\n*\n* - Downstream consumers of this mapping should **not** rely on specific integer values (e.g., `row-major == 1`). Instead, the object should be used in an opaque manner.\n* - The main purpose of this function is JavaScript and C inter-operation of ndarray objects.\n*\n* @returns {Object} object mapping supported orders to integer values\n*\n* @example\n* var table = enumerated();\n* // returns