Skip to content

Commit 4684482

Browse files
Neerajpathak07kgryte
authored andcommitted
remove: remove lowercaseKeys from namespace
This commit removes the `lowercaseKeys` symbol from the `@stdlib/utils` namespace due to a package migration. BREAKING CHANGE: remove `lowercaseKeys` To migrate, users should access the same symbol via the `@stdlib/object` namespace. Ref: #8755
1 parent c6d6ff7 commit 4684482

File tree

2 files changed

+0
-32
lines changed

2 files changed

+0
-32
lines changed

lib/node_modules/@stdlib/utils/docs/types/index.d.ts

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ import keyBy = require( '@stdlib/utils/key-by' );
124124
import keyByRight = require( '@stdlib/utils/key-by-right' );
125125
import objectKeys = require( '@stdlib/utils/keys' );
126126
import keysIn = require( '@stdlib/utils/keys-in' );
127-
import lowercaseKeys = require( '@stdlib/utils/lowercase-keys' );
128127
import map = require( '@stdlib/utils/map' );
129128
import mapArguments = require( '@stdlib/utils/map-arguments' );
130129
import mapFun = require( '@stdlib/utils/map-function' );
@@ -3122,28 +3121,6 @@ interface Namespace {
31223121
*/
31233122
keysIn: typeof keysIn;
31243123

3125-
/**
3126-
* Converts each object key to lowercase.
3127-
*
3128-
* ## Notes
3129-
*
3130-
* - The function only transforms own properties. Hence, the function does not transform inherited properties.
3131-
* - The function shallow copies key values.
3132-
*
3133-
* @param obj - source object
3134-
* @returns new object
3135-
*
3136-
* @example
3137-
* var obj1 = {
3138-
* 'A': 1,
3139-
* 'B': 2
3140-
* };
3141-
*
3142-
* var obj2 = ns.lowercaseKeys( obj1 );
3143-
* // returns { 'a': 1, 'b': 2 }
3144-
*/
3145-
lowercaseKeys: typeof lowercaseKeys;
3146-
31473124
/**
31483125
* Applies a function to each element in an array and assigns the result to an element in a new array.
31493126
*

lib/node_modules/@stdlib/utils/lib/index.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -976,15 +976,6 @@ setReadOnly( utils, 'objectKeys', require( '@stdlib/utils/keys' ) );
976976
*/
977977
setReadOnly( utils, 'keysIn', require( '@stdlib/utils/keys-in' ) );
978978

979-
/**
980-
* @name lowercaseKeys
981-
* @memberof utils
982-
* @readonly
983-
* @type {Function}
984-
* @see {@link module:@stdlib/utils/lowercase-keys}
985-
*/
986-
setReadOnly( utils, 'lowercaseKeys', require( '@stdlib/utils/lowercase-keys' ) );
987-
988979
/**
989980
* @name map
990981
* @memberof utils

0 commit comments

Comments
 (0)