Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

diff-ymd-package

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

diff-ymd-package - npm Package Compare versions

Comparing version 2.2.1 to 2.3.0

.github/workflows/deno.yml

24

CHANGELOG.md

@@ -223,2 +223,22 @@ ## Changelog

### [v2.3.0]
#### Added
- **Simplification:** Added CDN approach for diff-ymd-package
- Added the doc for CDN approach in readme file
- Added doc for CDN approach in jsdoc live doc
#### Changed
- Improved algorithm efficiency: Enhanced performance for existing methods to provide faster calculations.
- Modified internal structure: Refactored internal code for better readability and maintainability.
- Updated Readme and jsdoc doc for CDN approach
#### Fixed
- Fixed some issues related to the new changes.
- Configured files for publishing diff-ymd-package v2.3.0 on npm registry.
### [Next Release] - Collecting issues and new features for next release

@@ -228,4 +248,4 @@

- [Unreleased](https://github.com/farhan7reza7/diff-ymd-package/compare/v2.2.1...HEAD)
- [v2.2.1](https://github.com/farhan7reza7/diff-ymd-package/releases/tag/v2.2.1)
- [Unreleased](https://github.com/farhan7reza7/diff-ymd-package/compare/v2.3.0...HEAD)
- [v2.3.0](https://github.com/farhan7reza7/diff-ymd-package/releases/tag/v2.3.0)
- [Next Release](https://github.com/farhan7reza7/diff-ymd-package/milestone/2)

2

package.json
{
"name": "diff-ymd-package",
"version": "2.2.1",
"version": "2.3.0",
"description": "A javascript library for calculating the difference between two dates in formatted ways like (aY bM cD)(aYears bMonths cDays) or customized desired formats like aY-bM-cD or aYears-bMonths-cDays or kDays or mWeeks or nMonths etc.",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -17,2 +17,3 @@ # diff-ymd-package

- [Install from Github Packages registry](#install-from-github-packages-registryrequire-authentication)
- [Include in html page from CDN](#include-in-html-page-from-cdn)
- [Usages](#usages)

@@ -45,2 +46,15 @@ - [API References](#api-references)

### Include in html page from `CDN`
**`OR` for version `2.2.1` and `above`**
**Can include in page `using script tag` from CDN**
```html
<script src="https://cdn.jsdelivr.net/npm/diff-ymd-package@2.2.1/lib/index.min.js"></script>
```
[Get any supported version script tag](https://github.com/farhan7reza7/diff-ymd-package/wiki/Supported-versions-script-tags)
## Usages

@@ -57,2 +71,11 @@

**`OR` for version `2.2.1` and `above`**
**Can include in html page `using script tag` from `CDN`**
```html
<script src="https://cdn.jsdelivr.net/npm/diff-ymd-package@2.2.1/lib/index.min.js"></script>
```
### `Create an instance:`

@@ -78,2 +101,6 @@

**Note:** For CDN based, only **DatesYMD** constructor name creates an instance, and can use diffDates as well, but only using global **DatesYMD** like **DatesYMD.diffDates(...)**
[See an example of using CDN based](https://github.com/farhan7reza7/diff-ymd-package/wiki/CDN-based-example)
### `Use methods to format difference:`

@@ -366,3 +393,5 @@

[ci-url]: https://github.com/farhan7reza7/diff-ymd-package/actions/workflows/pages/pages-build-deployment
[license-image]: https://img.shields.io/github/license/farhan7reza7/diff-ymd-package
<!--[license-image]: https://img.shields.io/github/license/farhan7reza7/diff-ymd-package-->
[licence-url]: https://opensource.org/licenses/MIT
[license-image]: https://github.com/farhan7reza7/diff-ymd-package/assets/108195448/e81a03ab-3c61-4cf6-b8f9-ec49a006a191

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc