Skip to content

Commit af660f6

Browse files
committed
Auto-generated commit
1 parent 2cc43e6 commit af660f6

File tree

5 files changed

+46
-7
lines changed

5 files changed

+46
-7
lines changed

.gitignore

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,12 @@ jsconfig.json
188188
# Other editor files #
189189
######################
190190
.idea/
191-
192-
# Cursor #
193-
##########
191+
.cursor
194192
.cursorignore
193+
.windsurfrules
194+
.clinerules
195+
196+
# AI coding agents #
197+
####################
198+
CLAUDE.md
199+
GEMINI.md

CHANGELOG.md

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

7-
## Unreleased (2025-09-06)
7+
## Unreleased (2025-09-23)
88

99
<section class="features">
1010

1111
### Features
1212

13+
- [`7a9fb2e`](https://github.com/stdlib-js/stdlib/commit/7a9fb2e2b14b1fa32c1c2578c29e80e8edca8bf7) - update `string` TypeScript declarations
1314
- [`774b270`](https://github.com/stdlib-js/stdlib/commit/774b270d053d49740326553d549f698c7a5e94c8) - add missing exports to namespaces
1415
- [`ccb87b6`](https://github.com/stdlib-js/stdlib/commit/ccb87b67fc9b58a37d5603ee1b86658bc70f0ef3) - add missing exports to namespaces
1516
- [`c30bb89`](https://github.com/stdlib-js/stdlib/commit/c30bb89ea18eec5fcff098f16a30cc19315150e4) - add `string/base/slice-code-points` [(#5414)](https://github.com/stdlib-js/stdlib/pull/5414)
@@ -52,6 +53,8 @@
5253

5354
<details>
5455

56+
- [`b2dd31c`](https://github.com/stdlib-js/stdlib/commit/b2dd31c868ab2cc9d77f035b29de48e741fcc52b) - **chore:** fix main entry field in `package.json` _(by Philipp Burckhardt)_
57+
- [`7a9fb2e`](https://github.com/stdlib-js/stdlib/commit/7a9fb2e2b14b1fa32c1c2578c29e80e8edca8bf7) - **feat:** update `string` TypeScript declarations _(by Philipp Burckhardt)_
5558
- [`380f888`](https://github.com/stdlib-js/stdlib/commit/380f888de613b7b07e909ce7a1bc53f5a9801717) - **docs:** fix TypeScript declaration examples in string packages _(by Philipp Burckhardt)_
5659
- [`774b270`](https://github.com/stdlib-js/stdlib/commit/774b270d053d49740326553d549f698c7a5e94c8) - **feat:** add missing exports to namespaces _(by Philipp Burckhardt)_
5760
- [`ccb87b6`](https://github.com/stdlib-js/stdlib/commit/ccb87b67fc9b58a37d5603ee1b86658bc70f0ef3) - **feat:** add missing exports to namespaces _(by Philipp Burckhardt)_

CONTRIBUTORS

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Ahmed Khaled <kahmd1444@gmail.com>
2020
Aksshay Balasubramanian <119944779+Aksshay88@users.noreply.github.com>
2121
Aleksandr <112382387+alextes90@users.noreply.github.com>
2222
Ali Salesi <ali_sal1381@yahoo.com>
23-
AlyAbdelmoneim <148393799+AlyAbdelmoneim@users.noreply.github.com>
23+
Aly Abdelmoneim <148393799+AlyAbdelmoneim@users.noreply.github.com>
2424
Aman Bhansali <bhansali.1@iitj.ac.in>
2525
AmanBhadkariya <140033975+AmanBhadkariya@users.noreply.github.com>
2626
Amisha Chhajed <136238836+amishhaa@users.noreply.github.com>
@@ -29,6 +29,7 @@ Anmol Sah <113588714+anmolsah@users.noreply.github.com>
2929
Annamalai Prabu <apfossdev@gmail.com>
3030
Anshu Kumar <132515490+anxhukumar@users.noreply.github.com>
3131
Anshu Kumar <contact.anshukumar@protonmail.com>
32+
Anshuman Singh <109489361+Anshumancanrock@users.noreply.github.com>
3233
Anudeep Sanapala <anudeep0306@gmail.com>
3334
Arihant Pal <arihant0pal@gmail.com>
3435
Aryan Bhirud <112156883+AryanBhirud@users.noreply.github.com>
@@ -66,6 +67,7 @@ Frank Kovacs <fran70kk@gmail.com>
6667
GK Bishnoi <gkishan1kyt@gmail.com>
6768
GURU PRASAD SHARMA <168292003+GURUPRASADSHARMA@users.noreply.github.com>
6869
Gaurav <gaurav70380@gmail.com>
70+
Gaurav Kaushik <144526331+Gauravkaushik-1206@users.noreply.github.com>
6971
Gautam Kaushik <162317291+Kaushikgtm@users.noreply.github.com>
7072
Gautam sharma <gautamkrishnasharma1@gmail.com>
7173
GeoDaoyu <geodaoyu@foxmail.com>
@@ -136,6 +138,7 @@ Nourhan Hasan <109472010+TheNourhan@users.noreply.github.com>
136138
Ognjen Jevremović <ognjenjevremovic@users.noreply.github.com>
137139
Oneday12323 <107678750+Oneday12323@users.noreply.github.com>
138140
Ori Miles <97595296+orimiles5@users.noreply.github.com>
141+
Payal Goswami <payalgoswami9711@gmail.com>
139142
Philipp Burckhardt <pburckhardt@outlook.com>
140143
Pierre Forstmann <15964998+pierreforstmann@users.noreply.github.com>
141144
Pradyumn Prasad <pradyumnprasad.567@gmail.com>
@@ -177,9 +180,11 @@ Sanchay Ketan Sinha <122982233+satansin123@users.noreply.github.com>
177180
Sarthak Paandey <145528240+SarthakPaandey@users.noreply.github.com>
178181
Satyajeet Chavan <chavansatyajeet2004@gmail.com>
179182
Saurabh Singh <saurabhsraghuvanshi@gmail.com>
183+
Seth-Banker <125103042+Seth-Banker@users.noreply.github.com>
180184
Seyyed Parsa Neshaei <spneshaei@users.noreply.github.com>
181185
Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com>
182186
Shashank Shekhar Singh <shashankshekharsingh1205@gmail.com>
187+
Shaswata Panda <106397517+shaswata-26@users.noreply.github.com>
183188
Shivam Ahir <11shivam00@gmail.com>
184189
Shivansh <114570926+shiv343@users.noreply.github.com>
185190
Shraddheya Shendre <shendreshraddheya@gmail.com>
@@ -200,6 +205,7 @@ Tirtadwipa Manunggal <tirtadwipa.manunggal@gmail.com>
200205
Tudor Pagu <104032457+tudor-pagu@users.noreply.github.com>
201206
Tufailahmed Bargir <142114244+Tufailahmed-Bargir@users.noreply.github.com>
202207
Tushar Bhardwaj <155543597+TusharBhardwaj441@users.noreply.github.com>
208+
Tyson Cung <45380903+tysoncung@users.noreply.github.com>
203209
Uday Kakade <141299403+udaykakade25@users.noreply.github.com>
204210
Ujjwal Kirti <64329707+ujjwalkirti@users.noreply.github.com>
205211
Utkarsh <http://utkarsh11105@gmail.com>

base/slice-code-points/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"url": "https://github.com/stdlib-js/stdlib/graphs/contributors"
1414
}
1515
],
16-
"main": "./lib/main.js",
16+
"main": "./lib",
1717
"directories": {
1818
"benchmark": "./benchmark",
1919
"doc": "./docs",

docs/types/index.d.ts

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ import ltrimN = require( './../../left-trim-n' );
4141
import lowercase = require( './../../lowercase' );
4242
import nextCodePointIndex = require( './../../next-code-point-index' );
4343
import nextGraphemeClusterBreak = require( './../../next-grapheme-cluster-break' );
44+
import numCodePoints = require( './../../num-code-points' );
4445
import numGraphemeClusters = require( './../../num-grapheme-clusters' );
4546
import num2words = require( './../../num2words' );
4647
import pad = require( './../../pad' );
@@ -351,7 +352,7 @@ interface Namespace {
351352
* @returns HTTP header-cased string
352353
*
353354
* @example
354-
* var str = ns.headercase( 'Hello World!' );
355+
* var str = ns.headercase( 'Hello World!' );
355356
* // returns 'Hello-World'
356357
*
357358
* @example
@@ -543,6 +544,30 @@ interface Namespace {
543544
*/
544545
nextGraphemeClusterBreak: typeof nextGraphemeClusterBreak;
545546

547+
/**
548+
* Returns the number of code points in a string.
549+
*
550+
* @param str - input string
551+
* @returns number of code points
552+
*
553+
* @example
554+
* var out = ns.numCodePoints( 'last man standing' );
555+
* // returns 17
556+
*
557+
* @example
558+
* var out = ns.numCodePoints( 'presidential election' );
559+
* // returns 21
560+
*
561+
* @example
562+
* var out = ns.numCodePoints( '六' );
563+
* // returns 1
564+
*
565+
* @example
566+
* var out = ns.numCodePoints( 'अनुच्छेद' );
567+
* // returns 8
568+
*/
569+
numCodePoints: typeof numCodePoints;
570+
546571
/**
547572
* Returns the number of grapheme clusters in a string.
548573
*

0 commit comments

Comments
 (0)