This is an automated email from the ASF dual-hosted git repository. RyanSkraba pushed a commit to branch branch-1.12 in repository https://gitbox.apache.org/repos/asf/avro.git
commit 0d69d2bbaf16ec25a2f7986d1933346652136854 Author: Stefano Vozza <[email protected]> AuthorDate: Thu Aug 27 08:07:50 2026 +0100 AVRO-4350: [JavaScript] Restore underscore dependency (#3970) * AVRO-4350: Restore underscore dependency * AVRO-4350: Test package entry point --- lang/js/package-lock.json | 9 +++++++++ lang/js/package.json | 4 +++- lang/js/test/test_index.js | 35 +++++++++++++++++++++++++++++++++++ 3 files changed, 47 insertions(+), 1 deletion(-) diff --git a/lang/js/package-lock.json b/lang/js/package-lock.json index 6e6ecc40f7..3600911750 100644 --- a/lang/js/package-lock.json +++ b/lang/js/package-lock.json @@ -8,6 +8,9 @@ "name": "avro-js", "version": "1.12.3-SNAPSHOT", "license": "Apache-2.0", + "dependencies": { + "underscore": "^1.13.2" + }, "devDependencies": { "jshint": "^2.13.4", "mocha": "11.7.6", @@ -2736,6 +2739,12 @@ "is-typedarray": "^1.0.0" } }, + "node_modules/underscore": { + "version": "1.13.8", + "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.13.8.tgz", + "integrity": "sha512-DXtD3ZtEQzc7M8m4cXotyHR+FAS18C64asBYY5vqZexfYryNNnDc02W4hKg3rdQuqOYas1jkseX0+nZXjTXnvQ==", + "license": "MIT" + }, "node_modules/update-browserslist-db": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.2.3.tgz", diff --git a/lang/js/package.json b/lang/js/package.json index fce726e370..ad9174e552 100644 --- a/lang/js/package.json +++ b/lang/js/package.json @@ -41,7 +41,9 @@ "interop-data-generate": "node test/interop_data_generate.js", "interop-data-test": "mocha test/interop_data_test.js" }, - "dependencies": {}, + "dependencies": { + "underscore": "^1.13.2" + }, "devDependencies": { "nyc": "^18.0.0", "jshint": "^2.13.4", diff --git a/lang/js/test/test_index.js b/lang/js/test/test_index.js new file mode 100644 index 0000000000..508c99fe44 --- /dev/null +++ b/lang/js/test/test_index.js @@ -0,0 +1,35 @@ +/* jshint node: true, mocha: true */ + +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +'use strict'; + +var assert = require('assert'); + + +describe('package', function () { + + it('loads the public entry point', function () { + assert.doesNotThrow(function () { + require('..'); + }); + }); + +});
