-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
21 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
## Upgrading from 1.0.1 to 2.0.0 | ||
Upgrading to 2.0.0 introduces breaking API changes. | ||
|
||
JavaScript `Date` and `Number` prototypes are no longer patched by this library. | ||
The library should now be pure without any side effects. | ||
|
||
This means you can no longer depend on methods like `formattedTime` being directly accessible on the Date instance. For example, | ||
|
||
**Before**: | ||
|
||
```js | ||
prayerTimes.fajr.formattedTime(); // no longer works | ||
``` | ||
|
||
**After**: | ||
|
||
```js | ||
adhan.Date.formattedTime(prayerTimes.fajr); // works | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters