Skip to content

Commit 106a7f2

Browse files
author
Phillip Clark
committed
feat!: v2-ts
This commit is a reimplementation of the original deep-dif in Typescript. In this commit, we address all issues reported since the beginning. See ./test/regression/issue-???.ts for details on particular issues. BREAKING CHANGE: Interface has changed, reporting has changed, usage has changed! See the README.
1 parent e2b5b86 commit 106a7f2

File tree

113 files changed

+11894
-8346
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+11894
-8346
lines changed

.circleci/config.yml

-76
This file was deleted.

.editorconfig

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
trim_trailing_whitespace = true
7+
insert_final_newline = true
8+
9+
[*.md]
10+
insert_final_newline = false
11+
trim_trailing_whitespace = false
12+
13+
[*.{js,json,ts,mts,yml,yaml}]
14+
indent_size = 2
15+
indent_style = space

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/**/*.js

.eslintrc

-72
This file was deleted.

.eslintrc.json

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"env": {
3+
"browser": false,
4+
"es6": true,
5+
"node": true
6+
},
7+
"parser": "@typescript-eslint/parser",
8+
"parserOptions": {
9+
"project": "tsconfig.json",
10+
"sourceType": "module",
11+
"ecmaVersion": 2020
12+
},
13+
"plugins": ["@typescript-eslint", "tap"],
14+
"extends": [
15+
"eslint:recommended",
16+
"plugin:@typescript-eslint/recommended",
17+
"prettier"
18+
],
19+
"rules": {
20+
// The following rule is enabled only to supplement the inline suppression
21+
// examples, and because it is not a recommended rule, you should either
22+
// disable it, or understand what it enforces.
23+
// https://typescript-eslint.io/rules/explicit-function-return-type/
24+
"@typescript-eslint/explicit-function-return-type": "warn"
25+
}
26+
}

.github/workflows/nodejs.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Node.js CI
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v2
11+
- uses: volta-cli/action@v1
12+
- run: npm ci --no-audit
13+
- run: npm run lint --if-present
14+
- run: npm test
15+
- run: npm run build --if-present
16+
env:
17+
CI: true

.gitignore

+29-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,30 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
6+
# Dependencies
17
node_modules/
2-
coverage/
3-
test-results.xml
8+
9+
# Coverage & Test output
10+
coverage
11+
.tap/
12+
13+
# Transpiled files
14+
build/
15+
16+
# VS Code
17+
.vscode/
18+
!.vscode/tasks.js
19+
20+
# JetBrains IDEs
21+
.idea/
22+
23+
# Optional npm cache directory
24+
.npm
25+
26+
# Optional eslint cache
27+
.eslintcache
28+
29+
# Misc
30+
.DS_Store

.npmignore

-1
This file was deleted.

.prettierrc

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"singleQuote": true,
3+
"trailingComma": "all",
4+
"overrides": [
5+
{
6+
"files": ["*.ts", "*.mts"],
7+
"options": {
8+
"parser": "typescript"
9+
}
10+
}
11+
]
12+
}

.vscode/launch.json

+15-13
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,26 @@
77
{
88
"type": "node",
99
"request": "launch",
10-
"name": "Launch Program",
11-
"program": "${workspaceFolder}/examples/array-change.js"
10+
"name": "tap (current file)",
11+
"program": "${workspaceFolder}/node_modules/.bin/tap",
12+
"args": ["${relativeFile}"],
13+
"cwd": "${workspaceFolder}"
1214
},
1315
{
14-
"name": "Run mocha",
16+
"name": "ts-node (current file)",
1517
"type": "node",
1618
"request": "launch",
17-
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
18-
"stopOnEntry": false,
19-
"args": [
20-
"test/**/*.js",
21-
"--no-timeouts"
19+
"args": ["${relativeFile}"],
20+
"runtimeArgs": [
21+
"-r",
22+
"tsconfig-paths/register",
23+
"-r",
24+
"ts-node/register",
25+
"--loader",
26+
"ts-node/esm"
2227
],
2328
"cwd": "${workspaceRoot}",
24-
"runtimeExecutable": null,
25-
"env": {
26-
"NODE_ENV": "testing"
27-
}
29+
"internalConsoleOptions": "openOnSessionStart"
2830
}
2931
]
30-
}
32+
}

.vscode/tasks.json

-12
This file was deleted.

ChangeLog.md

-63
This file was deleted.

0 commit comments

Comments
 (0)