Skip to content

Commit f56b011

Browse files
committed
Release v1.0.3
2 parents d5d11d1 + 4c65321 commit f56b011

20 files changed

+601
-514
lines changed

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@ trim_trailing_whitespace = true
1010

1111
[*.md]
1212
trim_trailing_whitespace = false
13+
14+
[*.diff]
15+
trim_trailing_whitespace = false

.eslintrc.json

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es6": true,
5+
"node": true
6+
},
7+
"extends": [
8+
"eslint:recommended",
9+
"plugin:@typescript-eslint/eslint-recommended",
10+
"plugin:@typescript-eslint/recommended"
11+
],
12+
"globals": {
13+
"Atomics": "readonly",
14+
"SharedArrayBuffer": "readonly"
15+
},
16+
"parser": "@typescript-eslint/parser",
17+
"parserOptions": {
18+
"ecmaVersion": 2018,
19+
"sourceType": "module"
20+
},
21+
"plugins": [
22+
"@typescript-eslint"
23+
],
24+
"rules": {
25+
"@typescript-eslint/no-inferrable-types": "warn",
26+
"@typescript-eslint/no-namespace": "off",
27+
"arrow-parens": "warn",
28+
"camelcase": "warn",
29+
"eqeqeq": "error",
30+
"no-empty": "warn",
31+
"no-extra-semi": "warn",
32+
"no-inner-declarations": "off",
33+
"no-mixed-spaces-and-tabs": "off",
34+
"no-regex-spaces": "off",
35+
"no-var": "error",
36+
"prefer-const": "warn",
37+
"quotes": "warn",
38+
"semi": "error",
39+
"space-unary-ops": [
40+
"warn",
41+
{
42+
"words": false,
43+
"nonwords": false
44+
}
45+
],
46+
"spaced-comment": "warn"
47+
}
48+
}

.github/ISSUE_TEMPLATE/error_report.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ labels: error
77
# Error Report #
88

99
* **DeepTools Version**: _____
10+
* **Operating System**: _____
1011

1112
## Description ##
1213

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules
2+
out
3+
types

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ All notable changes to this project will be documented in this file.
66
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
77
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
88

9+
## [1.0.3] - 2020-03-14 ##
10+
11+
[1.0.3]: https://github.com/mfederczuk/deeptools/compare/v1.0.2...v1.0.3
12+
13+
### Fixed ###
14+
15+
* Fixed the signatures and implemention of some functions.
16+
917
## [1.0.2] - 2019-12-13 ##
1018

1119
[1.0.2]: https://github.com/mfederczuk/deeptools/compare/v1.0.1...v1.0.2

README.md

Lines changed: 27 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# DeepTools #
22

3-
[version_shield]: https://img.shields.io/badge/version-1.0.2-blue.svg
3+
[version_shield]: https://img.shields.io/badge/version-1.0.3-blue.svg
44
[latest_release]: https://github.com/mfederczuk/deep-tools/releases/latest "Latest Release"
55
[![version: N/A][version_shield]][latest_release]
66
[![Changelog](https://img.shields.io/badge/-Changelog-blue)](./CHANGELOG.md "Changelog")
@@ -25,36 +25,53 @@ yarn add @mfederczuk/deeptools
2525

2626
## Usage ##
2727

28-
### [`deepCopy`](./src/deepCopy.js) ###
28+
### [`deepCopy`](./src/deepCopy.ts) ###
2929

3030
```ts
3131
function deepCopy<T>(obj: T): T;
3232
```
3333

3434
Creates a deep copy of **obj**.
3535

36-
### [`deepEquals`](./src/deepEquals.js) ###
36+
### [`deepEquals`](./src/deepEquals.ts) ###
3737

3838
```ts
39-
function deepEquals(obj1: any, obj2: any): boolean;
39+
function deepEquals(obj1: unknown, obj2: unknown): boolean;
4040
```
4141

4242
Checks if **obj1** and **obj2** are equal by recursing through their properties.
4343

44-
### [`deepFreeze`](./src/deepFreeze.js) ###
44+
### [`deepFreeze`](./src/deepFreeze.ts) ###
45+
46+
```ts
47+
function deepFreeze<T>(arr: T[][]): readonly (readonly Readonly<T>[])[];
48+
```
49+
50+
Recursively freezes **arr**, all of **arr**'s items and all items of **arr**'s items.
51+
52+
```ts
53+
function deepFreeze<T>(arr: T[]): readonly Readonly<T>[];
54+
```
55+
56+
Recursively freezes **arr** and all of its items.
4557

4658
```ts
47-
function deepFreeze<T>(arr: T[]): ReadonlyArray<T>;
48-
function deepFreeze<T extends Function>(fun: T): T;
4959
function deepFreeze<T>(obj: T): Readonly<T>;
5060
```
5161

52-
Recursively freezes **obj** with all of its properties.
62+
Recursively freezes **obj** and all of its properties.
63+
64+
### [`safeCopy`](./src/safeCopy.ts) ###
65+
66+
```ts
67+
function safeCopy<T>(arr: T[][]): readonly (readonly Readonly<T>[])[];
68+
function safeCopy<T>(arr: T[]): readonly Readonly<T>[];
69+
```
5370

54-
### [`safeCopy`](./src/safeCopy.js) ###
71+
Creates a safe copy of **arr** by creating a deep frozen copy of it.
5572

5673
```ts
57-
function safeCopy<T>(obj: T): T;
74+
function safeCopy<T>(obj: T): Readonly<T>;
5875
```
5976

6077
Creates a safe copy of **obj** by creating a deep frozen copy of it.

0 commit comments

Comments
 (0)