Skip to content

Commit 3b0cb7a

Browse files
committed
Auto-generated commit
1 parent 4a2d36d commit 3b0cb7a

File tree

14 files changed

+16
-1401
lines changed

14 files changed

+16
-1401
lines changed

CHANGELOG.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
<section class="release" id="unreleased">
66

7-
## Unreleased (2025-12-27)
7+
## Unreleased (2025-12-30)
88

99
<section class="features">
1010

@@ -36,6 +36,16 @@
3636

3737
### BREAKING CHANGES
3838

39+
- [`2c3e048`](https://github.com/stdlib-js/stdlib/commit/2c3e048dcf3dcc0e1b89b1212d59a506a2bfc282): remove `utils/object-inverse-by`
40+
41+
- To migrate, users should update their require/import paths to use
42+
`@stdlib/object/inverse-by` which provides the same API and implementation.
43+
44+
- [`6a656b7`](https://github.com/stdlib-js/stdlib/commit/6a656b7e3cff362aa1b0b2028671e44728097011): remove `objectInverseBy`
45+
46+
- To migrate, users should access the same symbol via the
47+
`@stdlib/object` namespace.
48+
3949
- [`e6cc0c5`](https://github.com/stdlib-js/stdlib/commit/e6cc0c5aa41c0e093346829d82e0fbac7da0f276): remove `utils/common-keys-in`
4050

4151
- To migrate, users should update their require/import paths to use
@@ -292,6 +302,9 @@ A total of 25 issues were closed in this release:
292302

293303
<details>
294304

305+
- [`2c3e048`](https://github.com/stdlib-js/stdlib/commit/2c3e048dcf3dcc0e1b89b1212d59a506a2bfc282) - **remove:** remove `utils/object-inverse-by` _(by Neeraj Pathak)_
306+
- [`4c30cf3`](https://github.com/stdlib-js/stdlib/commit/4c30cf397369b02981a383aa406ebcebd619c163) - **refactor:** update paths _(by Neeraj Pathak)_
307+
- [`6a656b7`](https://github.com/stdlib-js/stdlib/commit/6a656b7e3cff362aa1b0b2028671e44728097011) - **remove:** remove `objectInverseBy` from namespace _(by Neeraj Pathak)_
295308
- [`e6cc0c5`](https://github.com/stdlib-js/stdlib/commit/e6cc0c5aa41c0e093346829d82e0fbac7da0f276) - **remove:** remove `utils/common-keys-in` _(by Neeraj Pathak)_
296309
- [`0e3c5ce`](https://github.com/stdlib-js/stdlib/commit/0e3c5cee0f1413f54a62c77a87b64d6634700424) - **remove:** remove `commonKeysIn` from namespace _(by Neeraj Pathak)_
297310
- [`e8707d4`](https://github.com/stdlib-js/stdlib/commit/e8707d4ad730b5e4b346f17fd045ed7ea3cefb83) - **chore:** fix JavaScript lint errors [(#6424)](https://github.com/stdlib-js/stdlib/pull/6424) _(by Sibi, Athan Reines, stdlib-bot)_

docs/types/index.d.ts

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,6 @@ import nonEnumerablePropertySymbolsIn = require( './../../nonenumerable-property
152152
import nonIndexKeys = require( './../../nonindex-keys' );
153153
import noop = require( './../../noop' );
154154
import objectInverse = require( './../../object-inverse' );
155-
import objectInverseBy = require( './../../object-inverse-by' );
156155
import omit = require( './../../omit' );
157156
import omitBy = require( './../../omit-by' );
158157
import openURL = require( './../../open-url' );
@@ -4051,45 +4050,6 @@ interface Namespace {
40514050
*/
40524051
objectInverse: typeof objectInverse;
40534052

4054-
/**
4055-
* Inverts an object, such that keys become values and values become keys, according to a transform function.
4056-
*
4057-
* ## Notes
4058-
*
4059-
* - The transform function is provided three arguments:
4060-
*
4061-
* - `key`: object key.
4062-
* - `value`: object value corresponding to `key`.
4063-
* - `obj`: the input object.
4064-
*
4065-
* - The value returned by a transform function should be a value which can be serialized as an object key. Hence, beware when providing objects having values which are themselves objects. The function relies on native object serialization (`#toString`) when converting transform function return values to keys.
4066-
*
4067-
* - In older JavaScript engines, insertion order is not guaranteed, as object key enumeration was not specified according to the ECMAScript specification in earlier editions. In practice, however, most older engines use insertion order to sort an object's keys, thus allowing for deterministic inversion.
4068-
*
4069-
* @param obj - input object
4070-
* @param opts - function options
4071-
* @param opts.duplicates - boolean indicating whether to store duplicate keys (default: true)
4072-
* @param transform - transform function
4073-
* @returns inverted object
4074-
*
4075-
* @example
4076-
* function transform( key, value ) {
4077-
* return value;
4078-
* }
4079-
*
4080-
* var obj = {};
4081-
* obj.a = 'beep';
4082-
* obj.b = 'boop';
4083-
* obj.c = 'beep'; // inserted after `a`
4084-
*
4085-
* var opts = {
4086-
* 'duplicates': false
4087-
* };
4088-
* var out = ns.objectInverseBy( obj, opts, transform );
4089-
* // returns { 'beep': 'c', 'boop': 'b' }
4090-
*/
4091-
objectInverseBy: typeof objectInverseBy;
4092-
40934053
/**
40944054
* Returns a partial object copy excluding specified keys.
40954055
*

lib/index.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1228,15 +1228,6 @@ setReadOnly( utils, 'noop', require( './../noop' ) );
12281228
*/
12291229
setReadOnly( utils, 'objectInverse', require( './../object-inverse' ) );
12301230

1231-
/**
1232-
* @name objectInverseBy
1233-
* @memberof utils
1234-
* @readonly
1235-
* @type {Function}
1236-
* @see {@link module:@stdlib/utils/object-inverse-by}
1237-
*/
1238-
setReadOnly( utils, 'objectInverseBy', require( './../object-inverse-by' ) );
1239-
12401231
/**
12411232
* @name omit
12421233
* @memberof utils

object-inverse-by/README.md

Lines changed: 0 additions & 205 deletions
This file was deleted.

0 commit comments

Comments
 (0)