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

@rollup/plugin-json

Package Overview
Dependencies
Maintainers
4
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rollup/plugin-json - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

92

CHANGELOG.md
# rollup-plugin-json changelog
## 4.0.1
_2019-12-21_
- fix(json): cannot be imported by rollup (#81)
## 4.0.0
*2019-03-18*
* Pass all JSON data through dataToEsm to consistently support "compact" formatting, support empty keys, abandon Node 4 support, add prettier, update dependencies ([#53](https://github.com/rollup/rollup-plugin-json/issues/53))
_2019-03-18_
- Pass all JSON data through dataToEsm to consistently support "compact" formatting, support empty keys, abandon Node 4 support, add prettier, update dependencies ([#53](https://github.com/rollup/rollup-plugin-json/issues/53))
## 3.1.0
*2018-09-13*
* Expose "compact" and "namedExports" options ([#45](https://github.com/rollup/rollup-plugin-json/issues/45))
* Update rollup-pluginutils to support null values in JSON ([#44](https://github.com/rollup/rollup-plugin-json/issues/44))
* Update dependencies and ensure rollup@1.0 compatibility ([#46](https://github.com/rollup/rollup-plugin-json/issues/46))
_2018-09-13_
- Expose "compact" and "namedExports" options ([#45](https://github.com/rollup/rollup-plugin-json/issues/45))
- Update rollup-pluginutils to support null values in JSON ([#44](https://github.com/rollup/rollup-plugin-json/issues/44))
- Update dependencies and ensure rollup@1.0 compatibility ([#46](https://github.com/rollup/rollup-plugin-json/issues/46))
## 3.0.0
*2018-05-11*
* No longer create a fake AST to support tree-shaking with upcoming versions of rollup ([#41](https://github.com/rollup/rollup-plugin-json/issues/41))
_2018-05-11_
- No longer create a fake AST to support tree-shaking with upcoming versions of rollup ([#41](https://github.com/rollup/rollup-plugin-json/issues/41))
## 2.3.1
*2018-05-11*
* Update example in readme ([#38](https://github.com/rollup/rollup-plugin-json/issues/38))
* Warn when using this version with upcoming rollup versions
_2018-05-11_
- Update example in readme ([#38](https://github.com/rollup/rollup-plugin-json/issues/38))
- Warn when using this version with upcoming rollup versions
## 2.3.0
*2017-06-03*
* Always parse JSON, so malformed JSON is identified at bundle time ([#27](https://github.com/rollup/rollup-plugin-json/issues/27))
_2017-06-03_
- Always parse JSON, so malformed JSON is identified at bundle time ([#27](https://github.com/rollup/rollup-plugin-json/issues/27))
## 2.2.0
*2017-06-03*
* Add `indent` option ([#24](https://github.com/rollup/rollup-plugin-json/issues/24))
_2017-06-03_
- Add `indent` option ([#24](https://github.com/rollup/rollup-plugin-json/issues/24))
## 2.1.1
*2017-04-09*
* Add license to package.json ([#25](https://github.com/rollup/rollup-plugin-json/pull/25))
_2017-04-09_
- Add license to package.json ([#25](https://github.com/rollup/rollup-plugin-json/pull/25))
## 2.1.0
*2016-12-15*
* Add support for `preferConst` option ([#16](https://github.com/rollup/rollup-plugin-json/pull/16))
* Handle JSON files with no valid identifier keys ([#19](https://github.com/rollup/rollup-plugin-json/issues/19))
_2016-12-15_
- Add support for `preferConst` option ([#16](https://github.com/rollup/rollup-plugin-json/pull/16))
- Handle JSON files with no valid identifier keys ([#19](https://github.com/rollup/rollup-plugin-json/issues/19))
## 2.0.2
*2016-09-07*
* Generate correct fake AST
_2016-09-07_
- Generate correct fake AST
## 2.0.1
*2016-06-23*
* Return a `name`
_2016-06-23_
- Return a `name`
## 2.0.0
*2015-11-05*
* Generate fake AST to avoid unnecessary traversals within Rollup
_2015-11-05_
- Generate fake AST to avoid unnecessary traversals within Rollup
## 1.1.0
*unpublished*
* Generate named exports alongside default exports
_unpublished_
- Generate named exports alongside default exports
## 1.0.0
*2015-10-25*
* First release
_2015-10-25_
- First release
import { Plugin } from 'rollup';
interface RollupJsonOptions {
export interface RollupJsonOptions {
/**

@@ -5,0 +5,0 @@ * All JSON files will be parsed by default,

{
"name": "@rollup/plugin-json",
"version": "4.0.0",
"version": "4.0.1",
"publishConfig": {

@@ -14,3 +14,3 @@ "access": "public"

"ci:coverage": "nyc pnpm run test && nyc report --reporter=text-lcov > coverage.lcov",
"ci:lint": "pnpm run build && pnpm run lint && pnpm run security",
"ci:lint": "pnpm run build && pnpm run lint",
"ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}",

@@ -23,6 +23,5 @@ "ci:test": "pnpm run test -- --verbose && pnpm run test:ts",

"prebuild": "del-cli dist",
"prepare": "npm run build",
"prepublishOnly": "npm run lint && npm run test",
"pretest": "npm run build",
"security": "echo 'pnpm needs `npm audit` support'",
"prepare": "pnpm run build",
"prepublishOnly": "pnpm run lint && pnpm run test",
"pretest": "pnpm run build",
"test": "ava",

@@ -64,4 +63,3 @@ "test:ts": "tsc index.d.ts test/types.ts --noEmit"

},
"jsnext:main": "dist/rollup-plugin-json.es.js",
"module": "dist/index.es.js"
}

@@ -12,3 +12,3 @@ [npm]: https://img.shields.io/npm/v/@rollup/plugin-json

🍣 A Rollup which Converts .json files to ES6 modules.
🍣 A Rollup plugin which Converts .json files to ES6 modules.

@@ -15,0 +15,0 @@ ## Requirements

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