From 87a75e16b9bdf08b17285d05d57af0769ff08d5a Mon Sep 17 00:00:00 2001 From: Gary Burgess Date: Sat, 22 Oct 2016 15:15:59 +0100 Subject: [PATCH] Prepare for 2.0 release --- README.md | 6 ++---- bower.json | 10 +++++----- package.json | 4 ++-- test/Test/Main.purs | 4 ++-- 4 files changed, 11 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 473d3cf..b7b9f3e 100755 --- a/README.md +++ b/README.md @@ -1,13 +1,11 @@ # purescript-argonaut -[![Latest release](http://img.shields.io/bower/v/purescript-argonaut.svg)](https://github.com/purescript-contrib/purescript-argonaut/releases) +[![Latest release](http://img.shields.io/github/release/purescript-contrib/purescript-argonaut.svg)](https://github.com/purescript-contrib/purescript-argonaut/releases) [![Build Status](https://travis-ci.org/purescript-contrib/purescript-argonaut.svg)](https://travis-ci.org/purescript-contrib/purescript-argonaut) -[![Dependency Status](https://www.versioneye.com/user/projects/563a42e91d47d40015000890/badge.svg?style=flat)](https://www.versioneye.com/user/projects/563a42e91d47d40015000890) [![Maintainer: slamdata](https://img.shields.io/badge/maintainer-slamdata-lightgrey.svg)](http://github.com/slamdata) This library bundles together the following: - [purescript-argonaut-core](https://github.com/purescript-contrib/purescript-argonaut-core) - basic parsing, printing, folding and types for `Json` -- [purescript-argonaut-traversals](https://github.com/purescript-contrib/purescript-argonaut-traversals) - `JCursor`, prisms and traversals for `Json` - [purescript-argonaut-codecs](https://github.com/purescript-contrib/purescript-argonaut-codecs) - `EncodeJson` and `DecodeJson` classes, their instances - +- [purescript-argonaut-traversals](https://github.com/purescript-contrib/purescript-argonaut-traversals) - `JCursor`, prisms and traversals for `Json` diff --git a/bower.json b/bower.json index e141416..924728f 100644 --- a/bower.json +++ b/bower.json @@ -11,12 +11,12 @@ }, "license": "MIT", "dependencies": { - "purescript-argonaut-codecs": "^1.0.0", - "purescript-argonaut-core": "^1.0.0", - "purescript-argonaut-traversals": "^1.0.0" + "purescript-argonaut-codecs": "^2.0.0", + "purescript-argonaut-core": "^2.0.0", + "purescript-argonaut-traversals": "^2.0.0" }, "devDependencies": { - "purescript-console": "^1.0.0", - "purescript-strongcheck": "^1.1.1" + "purescript-console": "^2.0.0", + "purescript-strongcheck": "^2.0.0" } } diff --git a/package.json b/package.json index 1d8bc24..f4e6d40 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "devDependencies": { "pulp": "^9.0.1", "purescript-psa": "^0.3.9", - "purescript": "^0.9.1", - "rimraf": "^2.4.4" + "purescript": "^0.10.1", + "rimraf": "^2.5.4" } } diff --git a/test/Test/Main.purs b/test/Test/Main.purs index 744bf15..fc09581 100644 --- a/test/Test/Main.purs +++ b/test/Test/Main.purs @@ -42,7 +42,7 @@ genJObject sz = do let f (AlphaNumString s) = s <> "x" k' = f <$> k - pure $ fromObject <<< M.fromList <<< fromFoldable <<< nubBy (\a b -> (fst a) == (fst b)) $ zipWith Tuple k' v + pure $ fromObject <<< M.fromFoldable <<< nubBy (\a b -> (fst a) == (fst b)) $ zipWith Tuple k' v genJson :: Size -> Gen Json genJson 0 = oneOf genJNull [genJBool, genJNumber, genJString] @@ -77,7 +77,7 @@ runTestJCursor (TestJCursor j) = j instance arbJCursor :: Arbitrary TestJCursor where arbitrary = do - i <- chooseInt 0.0 2.0 + i <- chooseInt 0 2 r <- if i == 0 then pure JCursorTop else if i == 1 then JField <$> arbitrary <*> (runTestJCursor <$> arbitrary) else JIndex <$> arbitrary <*> (runTestJCursor <$> arbitrary)