8000 Auto-generated commit · stdlib-js/ndarray-defaults@1d248c2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1d248c2

Browse files
committed
Auto-generated commit
1 parent 9d59cbd commit 1d248c2

File tree

12 files changed

+124
-16
lines changed

12 files changed

+124
-16
lines changed

.github/.keepalive

Lines changed: 0 additions & 1 deletion
This file was deleted.

CHANGELOG.md

Lines changed: 87 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,98 @@
44
55
<section class="release" id="unreleased">
66

7-
## Unreleased (2024-07-01)
7+
## Unreleased (2024-07-13)
8+
9+
<section class="features">
10+
11+
### Features
12+
13+
- [`e92152b`](https://github.com/stdlib-js/stdlib/commit/e92152baba61ab358640cba9d0506d75123a5f60) - add boolean dtype support to `ndarray/defaults` [(#2551)](https://github.com/stdlib-js/stdlib/pull/2551)
14+
15+
</section>
16+
17+
<!-- /.features -->
18+
19+
<section class="commits">
20+
21+
### Commits
22+
23+
<details>
24+
25+
- [`e92152b`](https://github.com/stdlib-js/stdlib/commit/e92152baba61ab358640cba9d0506d75123a5f60) - **feat:** add boolean dtype support to `ndarray/defaults` [(#2551)](https://github.com/stdlib-js/stdlib/pull/2551) _(by Jaysukh Makvana, Athan Reines)_
26+
27+
</details>
28+
29+
</section>
30+
31+
<!-- /.commits -->
32+
33+
<section class="contributors">
34+
35+
### Contributors
36+
37+
A total of 2 people contributed to this release. Thank you to the following contributors:
38+
39+
- Athan Reines
40+
- Jaysukh Makvana
41+
42+
</section>
43+
44+
<!-- /.contributors -->
45+
46+
</section>
47+
48+
<!-- /.release -->
49+
50+
<section class="release" id="v0.2.1">
51+
52+
## 0.2.1 (2024-02-21)
53+
54+
<section class="features">
55+
56+
### Features
57+
58+
- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0) - update minimum TypeScript version
59+
- [`d45a05b`](https://github.com/stdlib-js/stdlib/commit/d45a05b03973bf5b6a5e97cb4bc8c0aba3a68a12) - rename `integral` to `integer`
60+
- [`bd1017d`](https://github.com/stdlib-js/stdlib/commit/bd1017ddb8dd6fe552675221570186440cdbb4f5) - add `numeric` and `real` dtype defaults
61+
- [`9363dc3`](https://github.com/stdlib-js/stdlib/commit/9363dc3376fcb9ba18d181716fae8fbb731771bd) - add `get` method for retrieving a single default setting
62+
- [`35de20d`](https://github.com/stdlib-js/stdlib/commit/35de20d9359f2497eb0527c7cd99778dd7bff038) - add `ndarray/defaults`
63+
64+
</section>
65+
66+
<!-- /.features -->
67+
68+
<section class="breaking-changes">
69+
70+
### BREAKING CHANGES
71+
72+
- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version
73+
- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1
74+
75+
- To migrate, users should upgrade their TypeScript version to at least version 4.1.
76+
77+
- [`d45a05b`](https://github.com/stdlib-js/stdlib/commit/d45a05b03973bf5b6a5e97cb4bc8c0aba3a68a12): rename `integral` to `integer`
78+
- [`d45a05b`](https://github.com/stdlib-js/stdlib/commit/d45a05b03973bf5b6a5e97cb4bc8c0aba3a68a12): rename `integral` to `integer`
79+
80+
- To migrate, users should update their code to use `integer` rather
81+
than `integral` to refer to the policy/kind which includes both
82+
signed and unsigned integer dtypes.
83+
84+
</section>
85+
86+
<!-- /.breaking-changes -->
887

988
<section class="commits">
1089

1190
### Commits
1291

1392
<details>
1493

15-
- [`a591e05`](https://github.com/stdlib-js/stdlib/commit/a591e052cf1b1515c267781b914c6a482e150425) - **test:** fix test configuration _(by Athan Reines)_
94+
- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0) - **feat:** update minimum TypeScript version _(by Philipp Burckhardt)_
95+
- [`d45a05b`](https://github.com/stdlib-js/stdlib/commit/d45a05b03973bf5b6a5e97cb4bc8c0aba3a68a12) - **feat:** rename `integral` to `integer` _(by Athan Reines)_
96+
- [`bd1017d`](https://github.com/stdlib-js/stdlib/commit/bd1017ddb8dd6fe552675221570186440cdbb4f5) - **feat:** add `numeric` and `real` dtype defaults _(by Athan Reines)_
97+
- [`9363dc3`](https://github.com/stdlib-js/stdlib/commit/9363dc3376fcb9ba18d181716fae8fbb731771bd) - **feat:** add `get` method for retrieving a single default setting _(by Athan Reines)_
98+
- [`35de20d`](https://github.com/stdlib-js/stdlib/commit/35de20d9359f2497eb0527c7cd99778dd7bff038) - **feat:** add `ndarray/defaults` _(by Athan Reines)_
1699

17100
</details>
18101

@@ -24,9 +107,10 @@
24107

25108
### Contributors
26109

27-
A total of 1 person contributed to this release. Thank you to this contributor:
110+
A total of 2 people contributed to this release. Thank you to the following contributors:
28111

29112
- Athan Reines
113+
- Philipp Burckhardt
30114

31115
</section>
32116

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
33
@license Apache-2.0
44
5-
Copyright (c) 2023 The Stdlib Authors.
5+
Copyright (c) 2024 The Stdlib Authors.
66
77
Licensed under the Apache License, Version 2.0 (the "License");
88
you may not use this file except in compliance with the License.
@@ -95,6 +95,7 @@ The returned object has the following properties:
9595
- **integer**: default integer data type.
9696
- **signed_integer**: default signed integer data type.
9797
- **unsigned_integer**: default unsigned integer data type.
98+
- **boolean**: default boolean data type.
9899

99100
- **order**: default memory layout.
100101

@@ -172,6 +173,10 @@ console.log( x.dtype );
172173
opts.dtype = o.dtypes.unsigned_integer;
173174
x = array( buf, opts );
174175
console.log( x.dtype );
176+
177+
opts.dtype = o.dtypes.boolean;
178+
x = array( buf, opts );
179+
console.log( x.dtype );
175180
```
176181

177182
</section>

dist/index.js

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/repl.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@
3737
out.dtypes.unsigned_integer: string
3838
Default unsigned integer data type.
3939

40+
out.dtypes.boolean: string
41+
Default boolean data type.
42+
4043
out.order: string
4144
Default memory layout.
4245

docs/types/index.d.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* @license Apache-2.0
33
*
4-
* Copyright (c) 2023 The Stdlib Authors.
4+
* Copyright (c) 2024 The Stdlib Authors.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.
@@ -66,6 +66,11 @@ interface DataTypes {
6666
* Default unsigned integer data type.
6767
*/
6868
unsigned_integer: 'uint32';
69+
70+
/**
71+
* Default boolean value data type.
72+
*/
73+
boolean: 'bool';
6974
}
7075

7176
/**

examples/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @license Apache-2.0
33
*
4-
* Copyright (c) 2023 The Stdlib Authors.
4+
* Copyright (c) 2024 The Stdlib Authors.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.
@@ -53,3 +53,7 @@ console.log( x.dtype );
5353
opts.dtype = o.dtypes.unsigned_integer;
5454
x = array( buf, opts );
5555
console.log( x.dtype );
56+
57+
opts.dtype = o.dtypes.boolean;
58+
x = array( buf, opts );
59+
console.log( x.dtype );

lib/get.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @license Apache-2.0
33
*
4-
* Copyright (c) 2023 The Stdlib Authors.
4+
* Copyright (c) 2024 The Stdlib Authors.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.
@@ -36,6 +36,7 @@ var HASH = {
3636
'dtypes.integer': DEFAULTS.dtypes.integer,
3737
'dtypes.signed_integer': DEFAULTS.dtypes.signed_integer,
3838
'dtypes.unsigned_integer': DEFAULTS.dtypes.unsigned_integer,
39+
'dtypes.boolean': DEFAULTS.dtypes.boolean,
3940
'order': DEFAULTS.order,
4041
'casting': DEFAULTS.casting,
4142
'index_mode': DEFAULTS.index_mode

lib/main.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @license Apache-2.0
33
*
4-
* Copyright (c) 2023 The Stdlib Authors.
4+
* Copyright (c) 2024 The Stdlib Authors.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.
@@ -41,7 +41,8 @@ function defaults() {
4141
'complex_floating_point': 'complex128',
4242
'integer': 'int32',
4343
'signed_integer': 'int32',
44-
'unsigned_integer': 'uint32'
44+
'unsigned_integer': 'uint32',
45+
'boolean': 'bool'
4546
},
4647

4748
// Memory layout:

0 commit comments

Comments
 (0)
0