Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: protobufjs/protobuf.js
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: react-native-community/protobuf.js
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 1 commit
  • 3 files changed
  • 1 contributor

Commits on Mar 25, 2020

  1. Only publish sources to npm.

    cpojer committed Mar 25, 2020
    Copy the full SHA
    2363d9e View commit details
Showing with 4 additions and 33 deletions.
  1. 0 CHANGELOG.md → DO_NOT_PUBLISH_CHANGELOG.md
  2. +2 −0 README.md
  3. +2 −33 package.json
File renamed without changes.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<h1><p align="center"><img alt="protobuf.js" src="https://github.com/dcodeIO/protobuf.js/raw/master/pbjs.png" width="120" height="104" /></p></h1>
<p align="center"><a href="https://npmjs.org/package/protobufjs"><img src="https://img.shields.io/npm/v/protobufjs.svg" alt=""></a> <a href="https://travis-ci.org/dcodeIO/protobuf.js"><img src="https://travis-ci.org/dcodeIO/protobuf.js.svg?branch=master" alt=""></a> <a href="https://npmjs.org/package/protobufjs"><img src="https://img.shields.io/npm/dm/protobufjs.svg" alt=""></a> <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=dcode%40dcode.io&item_name=Open%20Source%20Software%20Donation&item_number=dcodeIO%2Fprotobuf.js"><img alt="donate ❤" src="https://img.shields.io/badge/donate-❤-ff2244.svg"></a></p>

## NOTE: This repo is a custom fork of Protobuf.js used to publish a smaller version of the library to npm (<1 MiB instead of ~4.9 MiB) under `@react-native-community/protobufjs`. Please do not send pull requests to this repository. The main repository is https://github.com/protobufjs/protobuf.js.

**Protocol Buffers** are a language-neutral, platform-neutral, extensible way of serializing structured data for use in communications protocols, data storage, and more, originally designed at Google ([see](https://developers.google.com/protocol-buffers/)).

**protobuf.js** is a pure JavaScript implementation with [TypeScript](https://www.typescriptlang.org) support for [node.js](https://nodejs.org) and the browser. It's easy to use, blazingly fast and works out of the box with [.proto](https://developers.google.com/protocol-buffers/docs/proto) files!
35 changes: 2 additions & 33 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "protobufjs",
"name": "@react-native-community/protobufjs",
"version": "6.8.9",
"versionScheme": "~",
"description": "Protocol Buffers for JavaScript (& TypeScript).",
@@ -15,11 +15,6 @@
"typescript"
],
"main": "index.js",
"types": "index.d.ts",
"bin": {
"pbjs": "bin/pbjs",
"pbts": "bin/pbts"
},
"scripts": {
"bench": "node bench",
"build": "gulp --gulpfile scripts/gulpfile.js",
@@ -29,7 +24,6 @@
"lint": "eslint **/*.js -c config/eslint.json && tslint **/*.d.ts -e **/node_modules/** -t stylish -c config/tslint.json",
"pages": "node scripts/pages",
"prepublish": "node scripts/prepublish",
"postinstall": "node scripts/postinstall",
"prof": "node bench/prof",
"test": "tape -r ./lib/tape-adapter tests/*.js tests/node/*.js",
"test-types": "tsc tests/comp_typescript.ts --lib es2015 --strictNullChecks --experimentalDecorators --emitDecoratorMetadata && tsc tests/data/test.js.ts --lib es2015 --noEmit --strictNullChecks && tsc tests/data/rpc.ts --lib es2015 --noEmit --strictNullChecks",
@@ -87,33 +81,8 @@
"vinyl-fs": "^3.0.3",
"vinyl-source-stream": "^2.0.0"
},
"cliDependencies": [
"semver",
"chalk",
"glob",
"jsdoc",
"minimist",
"tmp",
"uglify-js",
"espree",
"escodegen",
"estraverse"
],
"files": [
"index.js",
"index.d.ts",
"light.d.ts",
"light.js",
"minimal.d.ts",
"minimal.js",
"package-lock.json",
"tsconfig.json",
"scripts/postinstall.js",
"bin/**",
"cli/**",
"dist/**",
"ext/**",
"google/**",
"src/**"
"src/**/!(*.d.ts)"
]
}