Skip to content

Commit 66d4edd

Browse files
author
Steve Thompson
committed
Updated all dependency classes that begin with
"PublicArray" to their latest versions. Updated README.
1 parent 23445ca commit 66d4edd

File tree

5 files changed

+68
-80
lines changed

5 files changed

+68
-80
lines changed

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -578,10 +578,10 @@ arr.data = [item1, item2, item3, ...];
578578
arr.set( [item1, item2, item3, ...] );
579579
580580
// using .append() instead of .push():
581-
arr.append(['goodbye']); // now the last item in arr.data is 'goodbye'
581+
arr.append(['goodbye']); // now last item in arr.data is 'goodbye'
582582
583583
// using .prepend() instead of .unshift():
584-
arr.prepend(['hello']); // now the first item in arr.data is 'hello'
584+
arr.prepend(['hello']); // now first item in arr.data is 'hello'
585585
586586
// checking if array has a particular item:
587587
arr.data = ['a', 'q', 'r', 'z', 'x'];
@@ -603,13 +603,18 @@ let dirtyWords = arr.getAndRemove.byTest((item) => isString(item) && item.length
603603

604604
PublicArray has a large number of dependencies. You should keep this in mind when optimizing
605605
the performance of your app. For example, say your code only uses PublicArray's `.replace` property
606-
and nothing else. Since `.replace` is an instance of PublicArrayReplacer, you may get a small
606+
and nothing else. Since `.replace` is an instance of [PublicArrayReplacer](https://github.com/writetome51/public-array-replacer#publicarrayreplacer), you may get a small
607607
performance boost if you just instantiate PublicArrayReplacer instead of PublicArray:
608608
```
609609
let replace = new PublicArrayReplacer(array);
610610
replace.adjacentAt(2, ['just', 'an', 'example']);
611611
```
612612

613+
## Inheritance Chain
614+
615+
PublicArray<--[PublicArrayContent](https://github.com/writetome51/public-array-content#publicarraycontent)<--[PublicArrayContainer](https://github.com/writetome51/public-array-container#publicarraycontainer)<--[BaseClass](https://github.com/writetome51/typescript-base-class#baseclass)
616+
617+
613618

614619
## License
615620
[MIT](https://choosealicense.com/licenses/mit/)

dist/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,13 @@ var PublicArray = /** @class */ (function (_super) {
6767
set_array_1.setArray(this.data, newArray);
6868
};
6969
PublicArray.prototype.append = function (values) {
70-
return this.returnThis_after(array_append_prepend_1.append(values, this.data));
70+
return this._returnThis_after(array_append_prepend_1.append(values, this.data));
7171
};
7272
PublicArray.prototype.prepend = function (values) {
73-
return this.returnThis_after(array_append_prepend_1.prepend(values, this.data));
73+
return this._returnThis_after(array_append_prepend_1.prepend(values, this.data));
7474
};
7575
PublicArray.prototype.forEach = function (iterationFunction) {
76-
return this.returnThis_after(this.data.forEach(iterationFunction));
76+
return this._returnThis_after(this.data.forEach(iterationFunction));
7777
};
7878
return PublicArray;
7979
}(public_array_content_1.PublicArrayContent));

lib/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,17 +92,17 @@ export class PublicArray extends PublicArrayContent {
9292

9393

9494
append(values: any[]): this {
95-
return this.returnThis_after(append(values, this.data));
95+
return this._returnThis_after(append(values, this.data));
9696
}
9797

9898

9999
prepend(values: any[]): this {
100-
return this.returnThis_after(prepend(values, this.data));
100+
return this._returnThis_after(prepend(values, this.data));
101101
}
102102

103103

104104
forEach(iterationFunction: (currentValue, currentIndex?, entireArray?) => any): this {
105-
return this.returnThis_after(this.data.forEach(iterationFunction));
105+
return this._returnThis_after(this.data.forEach(iterationFunction));
106106
}
107107

108108

package-lock.json

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

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@
3030
"@writetome51/arrays-match": "~1.0.4"
3131
},
3232
"dependencies": {
33-
"@writetome51/public-array-remover": "~1.0.1",
34-
"@writetome51/public-array-content": "~1.2.0",
35-
"@writetome51/public-array-getter": "~1.0.1",
36-
"@writetome51/public-array-inserter": "~2.0.0",
37-
"@writetome51/public-array-sorter": "~1.0.0",
38-
"@writetome51/public-array-replacer": "~1.0.0",
39-
"@writetome51/public-array-getter-converter": "~1.0.3",
40-
"@writetome51/public-array-getter-remover": "~1.0.0",
41-
"@writetome51/public-array-filter": "~1.0.5",
33+
"@writetome51/public-array-remover": "~2.0.0",
34+
"@writetome51/public-array-content": "~2.0.0",
35+
"@writetome51/public-array-getter": "~2.0.0",
36+
"@writetome51/public-array-inserter": "~3.0.0",
37+
"@writetome51/public-array-sorter": "~2.0.0",
38+
"@writetome51/public-array-replacer": "~2.0.0",
39+
"@writetome51/public-array-getter-converter": "~2.0.0",
40+
"@writetome51/public-array-getter-remover": "~2.0.0",
41+
"@writetome51/public-array-filter": "~2.0.0",
4242
"@writetome51/array-append-prepend": "~1.0.3",
4343
"@writetome51/di-factory": "~1.0.0",
4444
"@writetome51/set-array": "~1.0.1"

0 commit comments

Comments
 (0)