Skip to content

Commit 81bfd5d

Browse files
committed
update texts
1 parent a9295a1 commit 81bfd5d

File tree

2 files changed

+16
-7
lines changed

2 files changed

+16
-7
lines changed

CHANGELOG.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ All notable changes to this project will be documented in this file. See [standa
77

88
[compare changes](https://git+https@github.com/quran-center/quran-meta/compare/v4.0.2...v4.0.3)
99

10-
## v4.0.2
11-
12-
[compare changes](https://git+https@github.com/quran-center/quran-meta/compare/v4.0.1...v4.0.2)
1310

1411
### 🏡 Chore
1512

@@ -25,6 +22,18 @@ All notable changes to this project will be documented in this file. See [standa
2522

2623
**Breaking changes in this version**
2724

25+
We apologize for any inconvenience caused by the recent breaking changes. These updates were essential to ensure safer and more error-free development in the future. The primary reasons for these changes include:
26+
27+
- Enhancing type safety to prevent errors.
28+
- Providing clear and predictable behavior.
29+
30+
By leveraging TypeScript and proper type usage, many issues can be identified early, saving users from encountering hard-to-find errors later on.
31+
32+
33+
* Number of functions have been renamed to be consistent
34+
* `findSurahByAyahId` renamed to `findSurahAyahByAyahId` and new `findSurahAyahByAyahId` is different
35+
* check for other changes
36+
2837
### 🚀 Enhancements
2938

3039
- Add new Surah String Parser `surahStringParser` (6620546)

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Quran Meta
22
==========
33

4-
[![Static Badge](https://img.shields.io/badge/Quran-Meta-brightgreen)](https://moiva.io/?npm=quran-meta)
4+
[![Static Badge](https://img.shields.io/badge/Quran-Meta-brightgreen)](https://github.com/quran-center/quran-meta)
55
[![Static Badge](https://img.shields.io/badge/Documentation-blue)](https://quran-center.github.io/quran-meta/docs/)
66

77
[![GitHub License](https://img.shields.io/github/license/quran-center/quran-meta)](https://github.com/quran-center/quran-meta/blob/master/LICENSE)
@@ -54,10 +54,10 @@ Answering Questions like:
5454
* juz (`findJuzMetaBySurah`)
5555
* maqra/rub-el-hizb (`getRubAlHizbMeta`, `getRubAlHizbMetaByAyahId`)
5656
* Validates ayah/surah id (`checkValidAyahId`,`checkValidSurah`, `checkValidSurahAyah`)
57-
* Typescript type guards (`isValidAyahId`, `isValidAyahNo`, `isValidSurah`, `isValidSurahAyah`, `isValidJuz`, `isValidHizb`, `isValidRubAlHizb`, `isValidPage` and ``)
57+
* Typescript type guards (`isValidAyahId`, `isValidAyahNo`, `isValidSurah`, `isValidSurahAyah`, `isValidJuz`, `isValidHizb`, `isValidRubAlHizb`, `isValidPage`)
5858
* converts `[surah, ayah]` to `ayahId` and vice-verse ( `findSurahByAyahId` and `findAyahIdBySurah`)
59-
* Checks and turns strings of type "x:y" or "x:y1-y2" to surah/ayah range `ayaStringSplitter`.
60-
* Checks and parses strings of type "x" to Surah `surahStringParser`.
59+
* Checks and turns strings of type "x:y" or "x:y1-y2" to surah/ayah range (`ayaStringSplitter`).
60+
* Checks and parses strings of type "x" to Surah (`surahStringParser`).
6161

6262
### APi Reference Documentation
6363

0 commit comments

Comments
 (0)