Release v0.10.2

This commit is contained in:
Sami Samhuri 2023-05-24 21:02:10 -07:00
parent 52753479c8
commit a0a62db076
No known key found for this signature in database
GPG key ID: 4B4195422742FC16
6 changed files with 52 additions and 12 deletions

View file

@ -1,3 +1,11 @@
v0.10.2 on 2023-05-24
- Fix test case for %c in current versions of node.js
- Fix %-y so it omits the leading zero
Thanks to [Aryan Arora](https://github.com/aryan-debug) for both fixes!
v0.10.1 on 2021-12-12
---------------------

View file

@ -3,7 +3,7 @@ strftime
strftime for JavaScript. Works in (at least) node.js and browsers. Supports localization and timezones. Most standard specifiers from C are supported as well as some other extensions from Ruby.
[![version 0.10.1 on npm](https://img.shields.io/badge/npm-0.10.1-brightgreen.svg?style=flat)](https://www.npmjs.com/package/strftime) [![node version 0.2 and up](https://img.shields.io/badge/node->=0.2-brightgreen.svg?style=flat)](https://nodejs.org) [![MIT License](https://img.shields.io/badge/License-MIT-blue.svg?style=flat)](https://sjs.mit-license.org)
[![version 0.10.2 on npm](https://img.shields.io/badge/npm-0.10.2-brightgreen.svg?style=flat)](https://www.npmjs.com/package/strftime) [![node version 0.2 and up](https://img.shields.io/badge/node->=0.2-brightgreen.svg?style=flat)](https://nodejs.org) [![MIT License](https://img.shields.io/badge/License-MIT-blue.svg?style=flat)](https://sjs.mit-license.org)
Installation
============
@ -148,7 +148,7 @@ e.g. `%q` becomes `q`. Use `%%` to get a literal `%` sign.
- X: equivalent to `%T` or `%r` in en_US (based on locale)
- x: equivalent to `%D` in en_US (based on locale)
- Y: the year with the century
- y: the year without the century (00-99)
- y: the year without the century, padded to 2 digits (00-99)
- Z: the time zone name, replaced with an empty string if it is not found
- z: the time zone offset from UTC, with a leading plus sign for UTC and zones east
of UTC and a minus sign for those west of UTC, hours and minutes follow each
@ -197,11 +197,12 @@ Contributors
* [TJ Holowaychuk](https://github.com/tj)
* [w0den](https://github.com/w0den)
* [Yusuke Kawasaki](https://github.com/kawanet)
* [Aryan Arora](https://github.com/aryan-debug)
License
=======
Copyright 2010 - 2021 Sami Samhuri sami@samhuri.net
Copyright 2010 - 2023 Sami Samhuri sami@samhuri.net
[MIT license](https://sjs.mit-license.org)

View file

@ -1,6 +1,6 @@
{
"name": "strftime",
"version": "0.10.1",
"version": "0.10.2",
"main": "strftime.js",
"ignore": [
"Readme.md",

View file

@ -2,8 +2,15 @@
"name": "strftime",
"repo": "samsonjs/strftime",
"description": "strftime date formatting",
"keywords": ["strftime", "format", "date", "time"],
"version": "0.10.1",
"keywords": [
"strftime",
"format",
"date",
"time"
],
"version": "0.10.2",
"main": "strftime.js",
"scripts": ["strftime.js"]
}
"scripts": [
"strftime.js"
]
}

17
package-lock.json generated Normal file
View file

@ -0,0 +1,17 @@
{
"name": "strftime",
"version": "0.10.2",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "strftime",
"version": "0.10.2",
"license": "MIT",
"devDependencies": {},
"engines": {
"node": ">=0.2.0"
}
}
}
}

View file

@ -1,7 +1,7 @@
{
"name": "strftime",
"description": "strftime for JavaScript",
"version": "0.10.1",
"version": "0.10.2",
"homepage": "https://samhuri.net/projects/strftime",
"author": "Sami Samhuri <sami@samhuri.net>",
"contributors": [
@ -24,9 +24,16 @@
"Stian Grytøyr (https://github.com/stiang)",
"TJ Holowaychuk (https://github.com/tj)",
"w0den (https://github.com/w0den)",
"Yusuke Kawasaki (https://github.com/kawanet)"
"Yusuke Kawasaki (https://github.com/kawanet)",
"Aryan Arora (https://github.com/aryan-debug)"
],
"keywords": [
"strftime",
"format",
"string",
"time",
"date"
],
"keywords": ["strftime", "format", "string", "time", "date"],
"repository": {
"type": "git",
"url": "git://github.com/samsonjs/strftime.git"
@ -43,4 +50,4 @@
"dependencies": {},
"devDependencies": {},
"optionalDependencies": {}
}
}