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

air-datepicker

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

air-datepicker - npm Package Compare versions

Comparing version 2.2.3 to 3.0.0

air-datepicker.css

82

package.json
{
"name": "air-datepicker",
"version": "2.2.3",
"version": "3.0.0",
"scripts": {
"dev": "set NODE_ENV=development&& webpack",
"dev:serve": "npm run browser&& set NODE_ENV=development&& webpack serve",
"prod": "set NODE_ENV=production&& webpack",
"browser": "open-cli http://localhost:8080 -- 'chrome' ",
"build": "node scripts/build.js",
"test": "jest"
},
"devDependencies": {
"autoprefixer": "^6.1.0",
"browserify": "^13.0.0",
"chai": "^3.4.1",
"gulp": "^3.9.0",
"gulp-clone": "^1.0.0",
"gulp-concat": "^2.6.0",
"gulp-gzip": "^1.2.0",
"gulp-jade": "^1.1.0",
"gulp-livereload": "^3.8.0",
"gulp-minify-css": "^1.2.1",
"gulp-plumber": "^1.0.1",
"gulp-postcss": "^6.0.1",
"gulp-rename": "^1.2.2",
"gulp-sass": "^2.0.4",
"gulp-uglify": "^1.2.0",
"gulp-watch": "^4.3.5",
"gulp-wrap": "^0.11.0",
"jade": "^1.11.0",
"mocha": "^2.3.4",
"node-static": "^0.7.7",
"vinyl-source-stream": "^1.1.0"
"@babel/cli": "^7.13.16",
"@babel/core": "^7.9.6",
"@babel/plugin-proposal-class-properties": "^7.8.3",
"@babel/plugin-proposal-private-methods": "^7.14.5",
"@babel/preset-env": "^7.9.6",
"@testing-library/jest-dom": "^5.11.10",
"autoprefixer": "^6.7.7",
"babel-eslint": "^10.1.0",
"babel-loader": "^8.1.0",
"chalk": "^4.1.1",
"css-loader": "^3.5.3",
"ejs": "^3.1.6",
"eslint": "^6.8.0",
"eslint-loader": "^4.0.2",
"express": "^4.17.1",
"glob": "^7.1.7",
"html-webpack-plugin": "^5.3.1",
"jest": "^26.6.3",
"mini-css-extract-plugin": "^1.6.0",
"node-sass": "^4.14.0",
"open-cli": "^6.0.1",
"postcss-loader": "^3.0.0",
"pug": "^3.0.2",
"rimraf": "^2.7.1",
"sass-loader": "^8.0.2",
"style-loader": "^1.2.1",
"typescript": "^4.4.3",
"webpack": "^5.37.0",
"webpack-cli": "^4.7.0",
"webpack-dev-middleware": "^4.2.0",
"webpack-dev-server": "^3.11.2",
"webpack-hot-middleware": "^2.25.0"
},
"dependencies": {
"jquery": ">=2.0.0 <4.0.0"
},
"description": "Lightweight customizable cross-browser jQuery datepicker, built with es5 and css-flexbox. Works in all modern desktop and mobile browsers (tested no Android 4.4+ and iOS8+)\r ![air datepicker image](https://github.com/t1m0n/air-datepicker/raw/master/docs/img/promo-img.png)",
"main": "src/js/air-datepicker.js",
"directories": {
"doc": "docs",
"test": "tests"
},
"description": "Lightweight, dependency free, fast, customizable datepicker written in pure JavaScript. \r ![air datepicker image](https://github.com/t1m0n/air-datepicker/raw/master/docs/img/promo-img.png)",
"main": "air-datepicker.js",
"types": "air-datepicker.d.ts",
"module": "index.es.js",
"repository": {

@@ -43,5 +57,3 @@ "type": "git",

"timepicker",
"plugin",
"customizable",
"powerful"
"lightweight"
],

@@ -53,3 +65,3 @@ "author": "t1m0n <t1m0n.tr@gmail.com>",

},
"homepage": "http://t1m0n.name/air-datepicker/docs/"
"homepage": "https://air-datepicker.com"
}

@@ -0,4 +1,6 @@

> :tada: New version released! :tada:
# Air Datepicker
Lightweight customizable cross-browser jQuery datepicker, built with es5 and css-flexbox. Works in all modern desktop and mobile browsers (tested on Android 4.4+ and iOS8+).
Lightweight, **dependency free**, fast, customizable datepicker written in pure JavaScript. Works in all modern browsers which supports native css variables.

@@ -9,22 +11,45 @@ ![air datepicker image](https://github.com/t1m0n/air-datepicker/raw/master/docs/img/promo-img-time.png)

### bower
```
bower i --save air-datepicker
npm i air-datepicker
```
### npm
```
npm i --save air-datepicker
```
## Usage
```javascript
$('.my-datepicker').datepicker([options])
import AirDatepicker from 'air-datepicker'
import 'air-datepicker/air-datepicker.css'
new AirDatepicker('#el' [, options]);
```
## Demo and docs
* [In English](http://t1m0n.name/air-datepicker/docs/)
* [In Russian](http://t1m0n.name/air-datepicker/docs/index-ru.html)
* [Version 3](https://air-datepicker.com)
* [Version 2](http://t1m0n.name/air-datepicker/docs/)
## Change log
### v3.0.0
It is been a while since the last release, a lot of work has been done, and I'm glad to finally present a new version of Air Datepicker.
The main goal was to remove jQuery dependency, and I'm happy to announce that Air Datepicker is no longer need any dependency, hurray! :partying_face:
Now it's written in ES6, uses native css variables for easy customization, and it's all built with webpack.
Soooo, here is the full list of changes:
* no more jQuery
* improve rendering process - remove redundant cell render when selecting date, which gave a large speed boost compared to the old version
* date format tokens now use [Unicode Technical Standard](https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table)
* TypeScript support
* added `selectedDates` option, to be able to select dates from the start
* added a possibility to create custom buttons
* now one could change selected range by dragging dates
* added `container` option which allows you to place datepicker in a custom element
* `navTitles` can receive a function and could render dynamically
* `dateFormat` now can receive a function
* `onSelect` and `onRenderCell` callbacks are now receive a single object as an argument instead of multiple parameters
* `selectDate` now receives second parameter with options
* `onChangeMonth`, `onChangeYear`, `onChangeDecades` are replaced with single option `onChangeViewDate`
* localization now must be provided as an object instead of string as it was before
### v2.2.3

@@ -31,0 +56,0 @@ * fixed min,max dates in decade mode

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