onnxruntime/js/web/lib/onnxjs
Yulong Wang 7dcb805ab8
[js/web] upgrade onnx-proto version (#16722)
### Description
This change upgrades a lot of dependencies. There are 2 motivations of
doing this change:
- fix the security issue reported by dependabot (protobufjs Prototype
Pollution vulnerability -
https://github.com/advisories/GHSA-h755-8qp9-cq85)
 - resolve the requirement of using ONNX IR_VERSION 9 (#16638)


This requires:
- upgrade protobufjs to v7.2.4
- upgrade library 'onnx-proto' to consume latest ONNX release (v1.14.0).

Problems:
- protobufjs v7.2.4 depends on long.js v5, which does not work well with
typescript (commonjs).
- onnx-proto depends on this fix with a new release of long.js
- long.js is in maintenance and it takes longer than expected to put in
new changes

Solutions:
- use a patch script in `preprepare` to copy type declarations to make
long.js work with typescript (commonjs)
- generate onnx protobuf JS/TS files and put them under
js/web/lib/onnxjs/ort-schema/protobuf folder - remove 'onnx-proto' from
dependency.
- apply fixes to generated onnx.d.ts
2023-07-18 16:36:39 -07:00
..
backends [js/web] update webgl context creating (#16436) 2023-06-21 17:10:26 -07:00
ort-schema [js/web] upgrade onnx-proto version (#16722) 2023-07-18 16:36:39 -07:00
attribute-with-cache-key.ts
attribute.ts [js/web] upgrade onnx-proto version (#16722) 2023-07-18 16:36:39 -07:00
backend.ts [js/web] WebGPU backend via JSEP (#14579) 2023-04-24 15:21:18 -07:00
execution-plan.ts
graph.ts [js/web] upgrade onnx-proto version (#16722) 2023-07-18 16:36:39 -07:00
instrument.ts [js] upgrade dependencies and enable strict mode (#14930) 2023-03-22 15:05:04 -07:00
model.ts [js/web] upgrade onnx-proto version (#16722) 2023-07-18 16:36:39 -07:00
operators.ts
opset.ts [js/web] WebGPU backend via JSEP (#14579) 2023-04-24 15:21:18 -07:00
session-handler.ts [js] upgrade async@3.2.3 /js/ (#11421) 2022-05-03 23:41:36 -07:00
session.ts [js/web] fix nodejs detection (#16400) 2023-06-20 00:20:58 -07:00
tensor.ts [js/web] upgrade onnx-proto version (#16722) 2023-07-18 16:36:39 -07:00
util.ts [js/web] upgrade onnx-proto version (#16722) 2023-07-18 16:36:39 -07:00