Skip to content

Commit f4d3ddd

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

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
@@ -30,7 +30,6 @@ import bifurcate = require( '@stdlib/utils/bifurcate' );
3030
import bifurcateBy = require( '@stdlib/utils/bifurcate-by' );
3131
import bifurcateIn = require( '@stdlib/utils/bifurcate-in' );
3232
import bifurcateOwn = require( '@stdlib/utils/bifurcate-own' );
33-
import capitalizeKeys = require( '@stdlib/utils/capitalize-keys' );
3433
import commonKeys = require( '@stdlib/utils/common-keys' );
3534
import commonKeysIn = require( '@stdlib/utils/common-keys-in' );
3635
import compose = require( '@stdlib/utils/compose' );
@@ -577,28 +576,6 @@ interface Namespace {
577576
*/
578577
bifurcateOwn: typeof bifurcateOwn;
579578

580-
/**
581-
* Converts the first letter of each object key to uppercase.
582-
*
583-
* ## Notes
584-
*
585-
* - The function only transforms own properties. Hence, the function does not transform inherited properties.
586-
* - The function shallow copies key values.
587-
*
588-
* @param obj - source object
589-
* @returns new object
590-
*
591-
* @example
592-
* var obj1 = {
593-
* 'aa': 1,
594-
* 'bb': 2
595-
* };
596-
*
597-
* var obj2 = ns.capitalizeKeys( obj1 );
598-
* // returns { 'Aa': 1, 'Bb': 2 }
599-
*/
600-
capitalizeKeys: typeof capitalizeKeys;
601-
602579
/**
603580
* Returns the common own property names of two or more objects.
604581
*

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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -130,15 +130,6 @@ setReadOnly( utils, 'bifurcateIn', require( '@stdlib/utils/bifurcate-in' ) );
130130
*/
131131
setReadOnly( utils, 'bifurcateOwn', require( '@stdlib/utils/bifurcate-own' ) );
132132

133-
/**
134-
* @name capitalizeKeys
135-
* @memberof utils
136-
* @readonly
137-
* @type {Function}
138-
* @see {@link module:@stdlib/utils/capitalize-keys}
139-
*/
140-
setReadOnly( utils, 'capitalizeKeys', require( '@stdlib/utils/capitalize-keys' ) );
141-
142133
/**
143134
* @name commonKeys
144135
* @memberof utils

0 commit comments

Comments
 (0)