Comparing version 0.1.5 to 0.1.6
# Changelog | ||
## Unreleased | ||
## v0.1.6 - 2020-06-15 | ||
- Migrate to TypeScript (#18, @rexxars, @judofyr) | ||
- Update semantics to work with latest GROQ spec | ||
## v0.1.5 - 2020-03-17 | ||
@@ -6,0 +9,0 @@ |
@@ -0,1 +1,3 @@ | ||
MIT License | ||
Copyright (C) 2019 Sanity Inc. | ||
@@ -8,2 +10,1 @@ | ||
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. | ||
{ | ||
"name": "groq-js", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"license": "MIT", | ||
"main": "src/index.js", | ||
"author": "Sanity.io <hello@sanity.io>", | ||
"main": "dist/index.js", | ||
"typings": "dist/index.d.ts", | ||
"module": "dist/groq-js.esm.js", | ||
"files": [ | ||
"dist", | ||
"src", | ||
"README.md" | ||
], | ||
"scripts": { | ||
"test": "jest", | ||
"build-api": "jsdoc2md -t utils/docs.hbs 'src/**/*.js' > API.md", | ||
"prettify": "prettier --write src/**/*.js" | ||
"start": "tsdx watch", | ||
"build": "tsdx build", | ||
"test": "tsdx test", | ||
"coverage": "tsdx test --coverage", | ||
"lint": "tsdx lint", | ||
"prepare": "tsdx build", | ||
"prettify": "prettier --write src/**/*.ts" | ||
}, | ||
"peerDependencies": {}, | ||
"devDependencies": { | ||
"jest": "^24.8.0", | ||
"jsdoc-to-markdown": "^5.0.1", | ||
"@types/jest": "^25.1.4", | ||
"ndjson": "^1.5.0", | ||
"prettier": "^1.18.2" | ||
"tsdx": "^0.13.1", | ||
"tslib": "^1.11.1", | ||
"typescript": "^3.8.3" | ||
}, | ||
"files": [ | ||
"src", | ||
"README.md" | ||
] | ||
"jest": { | ||
"testEnvironment": "node", | ||
"globals": { | ||
"ts-jest": { | ||
"diagnostics": false | ||
} | ||
} | ||
} | ||
} |
@@ -14,4 +14,4 @@ # GROQ-JS | ||
let dataset = [ | ||
{_type: "user", name: "Michael"}, | ||
{_type: "company", name: "Bluth Company"} | ||
{_type: 'user', name: 'Michael'}, | ||
{_type: 'company', name: 'Bluth Company'} | ||
] | ||
@@ -54,7 +54,7 @@ | ||
See [the changelog](CHANGELOG.md) for recent changes. | ||
This is an "experimental" release and anything *may* change at any time, but we're trying to keep changes as minimal as possible: | ||
This is an "experimental" release and anything _may_ change at any time, but we're trying to keep changes as minimal as possible: | ||
- The public API of the parser/evaluator will most likely stay the same in future version. | ||
- The syntax tree is *not* considered a public API and may change at any time. | ||
- This package always implements the latest version of [GROQ according to the specification](https://github.com/sanity-io/groq). | ||
- The syntax tree is _not_ considered a public API and may change at any time. | ||
- This package always implements the latest version of [GROQ according to the specification](https://github.com/sanity-io/groq). | ||
- The goal is to release a v1.0.0 by the end of 2019. | ||
@@ -72,6 +72,6 @@ | ||
# Install dependencies | ||
yarn | ||
npm i | ||
# Run tests | ||
yarn test | ||
npm test | ||
``` | ||
@@ -82,13 +82,7 @@ | ||
```bash | ||
# Clone the repo somewhere: | ||
git clone https://github.com/sanity-io/groq-test-suite somewhere | ||
# Fecth and generate test file: | ||
./test/generate.sh | ||
# Install dependencies: | ||
(cd somewhere && yarn) | ||
# Generate test file (in this repo): | ||
./test/generate.sh somewhere | ||
# Run tests as usual: | ||
yarn test | ||
npm test | ||
``` |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
790824
33
11986
1
5
3
85
2
3