Skip to content

Commit

Permalink
feat: Node v6.10 API compatibility (#2)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: This is a complete rewrite based upon the actual node source code and tests.

See also: mike-spainhower/querystring#4
  • Loading branch information
SpainTrain authored Apr 6, 2017
1 parent 17ab5d0 commit 68fdc79
Show file tree
Hide file tree
Showing 22 changed files with 1,601 additions and 451 deletions.
8 changes: 8 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"presets": [
"es3",
"es2015",
"es2016",
"es2017"
]
}
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules/
dist/

sauce_connect.log
.zuulrc
Empty file added .npmignore
Empty file.
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
language: node_js
node_js:
- 0.6
- 0.8
- "6"
addons:
sauce_connect: true
30 changes: 30 additions & 0 deletions .zuul.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
ui: mocha-bdd

browsers:
- name: chrome
version: [26, latest]
- name: android
version: [4.4, latest]

- name: firefox
version: [4, latest]

- name: safari
version: [5, 6, latest]
- name: iphone
version: [8.1, latest]
- name: ipad
version: [8.1, latest]

- name: ie
version: 8..11
- name: microsoftedge
version: -1..latest

browserify:
- transform: babelify

concurrency: 1
# tunnel:
# type: ngrok
# bind_tls: true
18 changes: 17 additions & 1 deletion License.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Implementation (./src/index.js)

## License

Copyright Node.js contributors. All rights reserved.

Copyright 2012 Irakli Gozalishvili. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to
deal in the Software without restriction, including without limitation the
Expand All @@ -17,3 +21,15 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
IN THE SOFTWARE.

## See also

<https://github.com/nodejs/node/blob/v6.10.2/LICENSE>

# Rest of the repository

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
15 changes: 8 additions & 7 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
# querystring

[![Build Status](https://secure.travis-ci.org/mike-spainhower/querystring.png)](http://travis-ci.org/mike-spainhower/querystring)
[![Build Status](https://travis-ci.org/SpainTrain/querystring-es3.svg?branch=master)](https://travis-ci.org/SpainTrain/querystring-es3)
[![Build Status](https://saucelabs.com/buildstatus/querystring-es3)](https://saucelabs.com/u/querystring-es3)

[![Build Status](https://saucelabs.com/browser-matrix/querystring-es3.svg)](https://saucelabs.com/u/querystring-es3)

[![Browser support](http://ci.testling.com/mike-spainhower/querystring.png)](http://ci.testling.com/mike-spainhower/querystring)
Node API compliant querystring module for all browsers. (ES3 compatible)



Node's querystring module for all engines.

## Install ##
## Install

npm install querystring-es3

## Usage

<https://nodejs.org/dist/latest-v6.x/docs/api/querystring.html>
84 changes: 0 additions & 84 deletions decode.js

This file was deleted.

85 changes: 0 additions & 85 deletions encode.js

This file was deleted.

4 changes: 0 additions & 4 deletions index.js

This file was deleted.

94 changes: 42 additions & 52 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,65 +1,55 @@
{
"name": "querystring-es3",
"id": "querystring-es3",
"version": "0.2.1",
"description": "Node's querystring module for all engines. (ES3 compat fork)",
"keywords": [ "commonjs", "query", "querystring" ],
"author": "Irakli Gozalishvili <rfobic@gmail.com>",
"version": "0.3.0",
"main": "dist/index.js",
"description": "Node API compliant querystring module for all browsers. (ES3 compatible)",
"scripts": {
"build": "babel src -d dist",
"prepare": "npm run build",
"prepublish": "npm run build",
"test": "npm-run-all build test:*",
"test:mocha": "mocha --require babel-register ./test/index.js",
"test:zuul": "zuul --no-coverage -- test"
},
"keywords": [
"commonjs",
"query",
"querystring",
"es3"
],
"author": "SpainTrain <mcspainhower+npm@gmail.com>",
"repository": {
"type": "git",
"url": "git://github.com/mike-spainhower/querystring.git",
"web": "https://github.com/mike-spainhower/querystring"
"url": "git://github.com/SpainTrain/querystring-es3.git",
"web": "https://github.com/SpainTrain/querystring-es3"
},
"bugs": {
"url": "http://github.com/mike-spainhower/querystring/issues/"
"url": "http://github.com/SpainTrain/querystring-es3/issues/"
},
"devDependencies": {
"test": "~0.x.0",
"phantomify": "~0.x.0",
"retape": "~0.x.0",
"tape": "~0.1.5"
"assert": "~1.4.1",
"babel-cli": "~6.24.0",
"babel-preset-es2015": "~6.24.0",
"babel-preset-es2016": "~6.22.0",
"babel-preset-es2017": "~6.22.0",
"babel-preset-es3": "~1.0.1",
"babel-register": "~6.24.0",
"babelify": "~7.3.0",
"browserify": "~14.1.0",
"eslint": "~3.13.0",
"json3": "~3.3.2",
"mocha": "~3.2.0",
"npm-run-all": "~4.0.2",
"object-inspect": "~1.2.2",
"zuul": "~3.11.1",
"zuul-ngrok": "~4.0.0"
},
"engines": {
"node": ">=0.4.x"
},
"scripts": {
"test": "npm run test-node && npm run test-browser && npm run test-tap",
"test-browser": "node ./node_modules/phantomify/bin/cmd.js ./test/common-index.js",
"test-node": "node ./test/common-index.js",
"test-tap": "node ./test/tap-index.js"
},
"testling": {
"files": "test/tap-index.js",
"browsers": {
"iexplore": [
9,
10
],
"chrome": [
16,
20,
25,
"canary"
],
"firefox": [
10,
15,
16,
17,
18,
"nightly"
],
"safari": [
5,
6
],
"opera": [
12
]
}
"node": ">=4"
},
"licenses": [{
"type" : "MIT",
"url" : "https://github.com/Gozala/enchain/License.md"
}]
"license": "MIT",
"dependencies": {
"buffer": "5.0.5"
}
}
Loading

0 comments on commit 68fdc79

Please sign in to comment.