js-yaml
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -0,1 +1,8 @@ | ||
1.0.2 / 2012-08-02 | ||
------------------ | ||
* Pull out hand-written shims. Use ES5-Shims for old browsers support. See #44. | ||
* Fix timstamps incorectly parsed in local time when no time part specified. | ||
1.0.1 / 2012-07-07 | ||
@@ -2,0 +9,0 @@ ------------------ |
@@ -407,3 +407,3 @@ 'use strict'; | ||
if (!match[4]) { // no hour | ||
return new Date(year, month, day); | ||
return new Date(Date.UTC(year, month, day)); | ||
} | ||
@@ -410,0 +410,0 @@ |
{ | ||
"name" : "js-yaml", | ||
"version" : "1.0.1", | ||
"version" : "1.0.2", | ||
"description" : "YAML 1.1 Parser", | ||
@@ -5,0 +5,0 @@ "keywords" : ["yaml", "parser", "pyyaml"], |
@@ -9,6 +9,7 @@ JS-YAML - YAML 1.1 parser for JavaScript | ||
This is a native port of [PyYAML](http://pyyaml.org/), the most advanced YAML parser. | ||
Now you can use all modern YAML feature right in JavaScript. Originally snapshoted version - PyYAML 3.10 (2011-05-30). | ||
Now you can use all modern YAML feature right in JavaScript. Originally snapshoted | ||
version - PyYAML 3.10 (2011-05-30). | ||
## Braking changes in 0.3.x -> 1.0.x | ||
## Breaking changes in 0.3.x -> 1.0.x | ||
@@ -21,3 +22,5 @@ - `y`, `yes`, `n`, `no`, `on`, `off` are not converted to Booleans anymore. | ||
- `require('file.yml')` now returns a single document (was array of documents) | ||
and throws an error when file contains multiple documents. | ||
and throws an error when file contains multiple documents. That should improve | ||
switching between YAML <-> JSON. `require('file.json')` will give the same | ||
result now. | ||
- `js-yaml.bin` become part of `js-yaml` again. | ||
@@ -71,3 +74,7 @@ | ||
**Support of oldIEs** and some other prehistoric browsers is possible using | ||
[es5-shims](https://github.com/kriskowal/es5-shim). Just include shims before | ||
jsyaml to use it with outdated browsers. | ||
## API | ||
@@ -74,0 +81,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
421785
205