Skip to content

Commit 0f4280e

Browse files
committed
Release v0.3.0
1 parent 2ff3000 commit 0f4280e

File tree

7 files changed

+189
-19
lines changed

7 files changed

+189
-19
lines changed

.github/.keepalive

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

.github/workflows/productionize.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ jobs:
9494
node -e "var pkg = require( './package.json' ); pkg.dependencies[ '@stdlib/error-tools-fmtprodmsg' ] = '^$PKG_VERSION'; require( 'fs' ).writeFileSync( 'package.json', JSON.stringify( pkg, null, 2 ) );"
9595
fi
9696
97-
# Configure git:
98-
- name: 'Configure git'
97+
# Configure Git:
98+
- name: 'Configure Git'
9999
run: |
100100
git config --local user.email "noreply@stdlib.io"
101101
git config --local user.name "stdlib-bot"
@@ -191,8 +191,8 @@ jobs:
191191
# Pin action to full length commit SHA
192192
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
193193

194-
# Configure git:
195-
- name: 'Configure git'
194+
# Configure Git:
195+
- name: 'Configure Git'
196196
run: |
197197
git config --local user.email "noreply@stdlib.io"
198198
git config --local user.name "stdlib-bot"
@@ -366,8 +366,8 @@ jobs:
366366
# Pin action to full length commit SHA
367367
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
368368

369-
# Configure git:
370-
- name: 'Configure git'
369+
# Configure Git:
370+
- name: 'Configure Git'
371371
run: |
372372
git config --local user.email "noreply@stdlib.io"
373373
git config --local user.name "stdlib-bot"
@@ -539,8 +539,8 @@ jobs:
539539
# Pin action to full length commit SHA
540540
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
541541

542-
# Configure git:
543-
- name: 'Configure git'
542+
# Configure Git:
543+
- name: 'Configure Git'
544544
run: |
545545
git config --local user.email "noreply@stdlib.io"
546546
git config --local user.name "stdlib-bot"
@@ -735,8 +735,8 @@ jobs:
735735
echo "bump=true" >> $GITHUB_OUTPUT
736736
fi
737737
738-
# Configure git:
739-
- name: 'Configure git'
738+
# Configure Git:
739+
- name: 'Configure Git'
740740
if: steps.check-if-bump.outputs.bump
741741
run: |
742742
git config --local user.email "noreply@stdlib.io"

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ jobs:
7272
node-version: 20
7373
timeout-minutes: 5
7474

75-
# Configure git:
76-
- name: 'Configure git'
75+
# Configure Git:
76+
- name: 'Configure Git'
7777
run: |
7878
git config --local user.email "noreply@stdlib.io"
7979
git config --local user.name "stdlib-bot"

CHANGELOG.md

Lines changed: 173 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,52 @@
22

33
> Package changelog.
44
5-
<section class="release" id="unreleased">
5+
<section class="release" id="v0.3.0">
66

7-
## Unreleased (2024-07-01)
7+
## 0.3.0 (2024-07-26)
8+
9+
<section class="features">
10+
11+
### Features
12+
13+
- [`693efb2`](https://github.com/stdlib-js/stdlib/commit/693efb2eb159d1cd25c6cffe2440e36e6a14b9b2) - resolve negative indices relative to the last character index
14+
- [`29d7b0d`](https://github.com/stdlib-js/stdlib/commit/29d7b0dc141e1112af120eab76fa6731b8fdbe78) - add support for `fromIndex`
15+
16+
</section>
17+
18+
<!-- /.features -->
19+
20+
<section class="breaking-changes">
21+
22+
### BREAKING CHANGES
23+
24+
- [`693efb2`](https://github.com/stdlib-js/stdlib/commit/693efb2eb159d1cd25c6cffe2440e36e6a14b9b2): resolve negative indices relative to the last character index
25+
- [`693efb2`](https://github.com/stdlib-js/stdlib/commit/693efb2eb159d1cd25c6cffe2440e36e6a14b9b2): resolve negative indices relative to the last index
26+
27+
- Previously, negative index arguments would resolve to zero and
28+
search would start from the beginning of the string. To preserve
29+
previous behavior, users should clamp `fromIndex` values to string
30+
index bounds before calling into `replaceBefore`.
31+
32+
- [`29d7b0d`](https://github.com/stdlib-js/stdlib/commit/29d7b0dc141e1112af120eab76fa6731b8fdbe78): add support for `fromIndex`
33+
- [`29d7b0d`](https://github.com/stdlib-js/stdlib/commit/29d7b0dc141e1112af120eab76fa6731b8fdbe78): require `fromIndex` argument
34+
35+
- To migrate, users should provide an explicit `fromIndex` of `0` in
36+
order to retain previous behavior.
37+
38+
</section>
39+
40+
<!-- /.breaking-changes -->
841

942
<section class="commits">
1043

1144
### Commits
1245

1346
<details>
1447

15-
- [`a591e05`](https://github.com/stdlib-js/stdlib/commit/a591e052cf1b1515c267781b914c6a482e150425) - **test:** fix test configuration _(by Athan Reines)_
48+
- [`693efb2`](https://github.com/stdlib-js/stdlib/commit/693efb2eb159d1cd25c6cffe2440e36e6a14b9b2) - **feat:** resolve negative indices relative to the last character index _(by Athan Reines)_
49+
- [`29d7b0d`](https://github.com/stdlib-js/stdlib/commit/29d7b0dc141e1112af120eab76fa6731b8fdbe78) - **feat:** add support for `fromIndex` _(by Athan Reines)_
50+
- [`6bff34f`](https://github.com/stdlib-js/stdlib/commit/6bff34fcc4cbc7c17b7ff99beed20cdd0ea1b3c0) - **style:** add missing space _(by Athan Reines)_
1651

1752
</details>
1853

@@ -36,3 +71,138 @@ A total of 1 person contributed to this release. Thank you to this contributor:
3671

3772
<!-- /.release -->
3873

74+
<section class="release" id="v0.2.1">
75+
76+
## 0.2.1 (2024-02-21)
77+
78+
No changes reported for this release.
79+
80+
</section>
81+
82+
<!-- /.release -->
83+
84+
<section class="release" id="v0.2.0">
85+
86+
## 0.2.0 (2024-02-14)
87+
88+
<section class="commits">
89+
90+
### Commits
91+
92+
<details>
93+
94+
- [`f9c75ce`](https://github.com/stdlib-js/stdlib/commit/f9c75ce726ed4e5fade8622315bb98094dad8561) - **build:** remove tslint directives _(by Philipp Burckhardt)_
95+
96+
</details>
97+
98+
</section>
99+
100+
<!-- /.commits -->
101+
102+
<section class="contributors">
103+
104+
### Contributors
105+
106+
A total of 1 person contributed to this release. Thank you to this contributor:
107+
108+
- Philipp Burckhardt
109+
110+
</section>
111+
112+
<!-- /.contributors -->
113+
114+
</section>
115+
116+
<!-- /.release -->
117+
118+
<section class="release" id="v0.1.1">
119+
120+
## 0.1.1 (2023-10-03)
121+
122+
No changes reported for this release.
123+
124+
</section>
125+
126+
<!-- /.release -->
127+
128+
<section class="release" id="v0.1.0">
129+
130+
## 0.1.0 (2023-09-22)
131+
132+
<section class="features">
133+
134+
### Features
135+
136+
- [`3573d92`](https://github.com/stdlib-js/stdlib/commit/3573d92955f1150eae58fb534808b7a30532a1c1) - update minimum TypeScript version
137+
- [`a7e60d8`](https://github.com/stdlib-js/stdlib/commit/a7e60d8aae80fa67f961db4221263782edc89f99) - remove CLI
138+
- [`ae68d17`](https://github.com/stdlib-js/stdlib/commit/ae68d1783e4d97a36bc6a74d8cbe8004dae79ad2) - add support for replacing the substring before the first occurrence of a search string [(#843)](https://github.com/stdlib-js/stdlib/pull/843)
139+
140+
</section>
141+
142+
<!-- /.features -->
143+
144+
<section class="breaking-changes">
145+
146+
### BREAKING CHANGES
147+
148+
- [`3573d92`](https://github.com/stdlib-js/stdlib/commit/3573d92955f1150eae58fb534808b7a30532a1c1): update minimum TypeScript version
149+
- [`a7e60d8`](https://github.com/stdlib-js/stdlib/commit/a7e60d8aae80fa67f961db4221263782edc89f99): remove CLI
150+
- [`a7e60d8`](https://github.com/stdlib-js/stdlib/commit/a7e60d8aae80fa67f961db4221263782edc89f99): remove CLI
151+
152+
- This is a \"base\" package, and thus should not normally have a CLI.
153+
The CLI has moved to `@stdlib/string-replace-before`. Users relying
154+
on the CLI should migrate to using that package.
155+
156+
</section>
157+
158+
<!-- /.breaking-changes -->
159+
160+
<section class="issues">
161+
162+
### Closed Issues
163+
164+
This release closes the following issue:
165+
166+
[#811](https://github.com/stdlib-js/stdlib/issues/811)
167+
168+
</section>
169+
170+
<!-- /.issues -->
171+
172+
<section class="commits">
173+
174+
### Commits
175+
176+
<details>
177+
178+
- [`3573d92`](https://github.com/stdlib-js/stdlib/commit/3573d92955f1150eae58fb534808b7a30532a1c1) - **feat:** update minimum TypeScript version _(by Philipp Burckhardt)_
179+
- [`440034d`](https://github.com/stdlib-js/stdlib/commit/440034de6d7d057f3afb7399b6a3951dc0749c70) - **chore:** fix indentation in package meta data [(#928)](https://github.com/stdlib-js/stdlib/pull/928) _(by stdlib-bot, Athan Reines)_
180+
- [`a7e60d8`](https://github.com/stdlib-js/stdlib/commit/a7e60d8aae80fa67f961db4221263782edc89f99) - **feat:** remove CLI _(by Athan Reines)_
181+
- [`35622d7`](https://github.com/stdlib-js/stdlib/commit/35622d74bcfebc1cd92859618f5f3bf0dcd29003) - **refactor:** clean-up implementation, tests, and docs _(by Athan Reines)_
182+
- [`ae68d17`](https://github.com/stdlib-js/stdlib/commit/ae68d1783e4d97a36bc6a74d8cbe8004dae79ad2) - **feat:** add support for replacing the substring before the first occurrence of a search string [(#843)](https://github.com/stdlib-js/stdlib/pull/843) _(by Harshita Kalani, Athan Reines, Pranav)_
183+
184+
</details>
185+
186+
</section>
187+
188+
<!-- /.commits -->
189+
190+
<section class="contributors">
191+
192+
### Contributors
193+
194+
A total of 4 people contributed to this release. Thank you to the following contributors:
195+
196+
- Athan Reines
197+
- Harshita Kalani
198+
- Philipp Burckhardt
199+
- Pranav
200+
201+
</section>
202+
203+
<!-- /.contributors -->
204+
205+
</section>
206+
207+
<!-- /.release -->
208+

CONTRIBUTORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ Muhammad Haris <harriskhan047@outlook.com>
5151
Naresh Jagadeesan <naresh.naresh000@gmail.com>
5252
NightKnight <Ahmedatwa866@yahoo.com>
5353
Nithin Katta <88046362+nithinkatta@users.noreply.github.com>
54+
Nourhan Hasan <109472010+TheNourhan@users.noreply.github.com>
5455
Ognjen Jevremović <ognjenjevremovic@users.noreply.github.com>
5556
Oneday12323 <107678750+Oneday12323@users.noreply.github.com>
5657
Philipp Burckhardt <pburckhardt@outlook.com>

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,8 @@ Copyright &copy; 2016-2024. The Stdlib [Authors][stdlib-authors].
200200
[npm-image]: http://img.shields.io/npm/v/@stdlib/string-base-replace-before.svg
201201
[npm-url]: https://npmjs.org/package/@stdlib/string-base-replace-before
202202

203-
[test-image]: https://github.com/stdlib-js/string-base-replace-before/actions/workflows/test.yml/badge.svg?branch=main
204-
[test-url]: https://github.com/stdlib-js/string-base-replace-before/actions/workflows/test.yml?query=branch:main
203+
[test-image]: https://github.com/stdlib-js/string-base-replace-before/actions/workflows/test.yml/badge.svg?branch=v0.3.0
204+
[test-url]: https://github.com/stdlib-js/string-base-replace-before/actions/workflows/test.yml?query=branch:v0.3.0
205205

206206
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/string-base-replace-before/main.svg
207207
[coverage-url]: https://codecov.io/github/stdlib-js/string-base-replace-before?branch=main

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@stdlib/string-base-replace-before",
3-
"version": "0.2.1",
3+
"version": "0.3.0",
44
"description": "Replace the substring before the first occurrence of a specified search string.",
55
"license": "Apache-2.0",
66
"author": {

0 commit comments

Comments
 (0)