Skip to content

Commit 264030b

Browse files
chore(release): 1.21.0 [skip ci]
# [1.21.0](v1.20.0...v1.21.0) (2026-01-04) ### Bug Fixes * **ci:** address issues ([f6f63dd](f6f63dd)) * prevent prototype pollution in extend function ([468d253](468d253)) ### Features * **vk:** Add required 'v' API version parameter to VK API requests ([da2b6d1](da2b6d1)), closes [#544](#544)
1 parent f6f63dd commit 264030b

6 files changed

Lines changed: 25 additions & 9 deletions

File tree

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
# [1.21.0](https://github.com/MrSwitch/hello.js/compare/v1.20.0...v1.21.0) (2026-01-04)
2+
3+
4+
### Bug Fixes
5+
6+
* **ci:** address issues ([f6f63dd](https://github.com/MrSwitch/hello.js/commit/f6f63dd5cdf0e2c4ea81fff3fbd9b523b6145bd5))
7+
* prevent prototype pollution in extend function ([468d253](https://github.com/MrSwitch/hello.js/commit/468d2532d8380faa606aa98e81be0f47fca890fc))
8+
9+
10+
### Features
11+
12+
* **vk:** Add required 'v' API version parameter to VK API requests ([da2b6d1](https://github.com/MrSwitch/hello.js/commit/da2b6d195d4cab50e113180eba43230210891083)), closes [#544](https://github.com/MrSwitch/hello.js/issues/544)
13+
114
# [1.20.0](https://github.com/MrSwitch/hello.js/compare/v1.19.5...v1.20.0) (2023-01-25)
215

316

dist/hello.all.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! hellojs v1.20.0 - (c) 2012-2023 Andrew Dodson - MIT https://adodson.com/hello.js/LICENSE */
1+
/*! hellojs v1.21.0 - (c) 2012-2026 Andrew Dodson - MIT https://adodson.com/hello.js/LICENSE */
22
// ES5 Object.create
33
if (!Object.create) {
44

@@ -171,6 +171,7 @@ hello.utils = {
171171

172172
// Extend the first object with the properties and methods of the second
173173
extend: function(r /*, a[, b[, ...]] */) {
174+
const dangerousKeys = ['__proto__', 'constructor', 'prototype'];
174175

175176
// Get the arguments as an array but ommit the initial item
176177
Array.prototype.slice.call(arguments, 1).forEach(function(a) {
@@ -180,7 +181,7 @@ hello.utils = {
180181
else if (r && (r instanceof Object || typeof r === 'object') && a && (a instanceof Object || typeof a === 'object') && r !== a) {
181182
for (var x in a) {
182183
// Prevent prototype pollution
183-
if (x === '__proto__' || x === 'constructor') {
184+
if (dangerousKeys.includes(x)) {
184185
continue;
185186
}
186187

@@ -5555,6 +5556,7 @@ if (typeof chrome === 'object' && typeof chrome.identity === 'object' && chrome.
55555556
get: {
55565557
me: function(p, callback) {
55575558
p.query.fields = 'id,first_name,last_name,photo_max';
5559+
p.query.v = '5.131';
55585560
callback('users.get');
55595561
}
55605562
},

dist/hello.all.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/hello.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! hellojs v1.20.0 - (c) 2012-2023 Andrew Dodson - MIT https://adodson.com/hello.js/LICENSE */
1+
/*! hellojs v1.21.0 - (c) 2012-2026 Andrew Dodson - MIT https://adodson.com/hello.js/LICENSE */
22
// ES5 Object.create
33
if (!Object.create) {
44

@@ -171,6 +171,7 @@ hello.utils = {
171171

172172
// Extend the first object with the properties and methods of the second
173173
extend: function(r /*, a[, b[, ...]] */) {
174+
const dangerousKeys = ['__proto__', 'constructor', 'prototype'];
174175

175176
// Get the arguments as an array but ommit the initial item
176177
Array.prototype.slice.call(arguments, 1).forEach(function(a) {
@@ -180,7 +181,7 @@ hello.utils = {
180181
else if (r && (r instanceof Object || typeof r === 'object') && a && (a instanceof Object || typeof a === 'object') && r !== a) {
181182
for (var x in a) {
182183
// Prevent prototype pollution
183-
if (x === '__proto__' || x === 'constructor') {
184+
if (dangerousKeys.includes(x)) {
184185
continue;
185186
}
186187

dist/hello.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hellojs",
3-
"version": "1.20.0",
3+
"version": "1.21.0",
44
"description": "A clientside Javascript library for standardizing requests to OAuth2 web services (and OAuth1 - with a shim)",
55
"homepage": "https://adodson.com/hello.js",
66
"main": "dist/hello.all.js",

0 commit comments

Comments
 (0)