Skip to content

Commit

Permalink
feat!: v2-ts
Browse files Browse the repository at this point in the history
This commit is a reimplementation of the original deep-dif in Typescript. In this commit, we address all issues reported since the beginning.

BREAKING CHANGE: Interface has changed, reporting has changed, usage has changed! See the README.
  • Loading branch information
Phillip Clark committed Apr 9, 2024
1 parent e2b5b86 commit 1a2c79a
Show file tree
Hide file tree
Showing 114 changed files with 11,913 additions and 8,356 deletions.
76 changes: 0 additions & 76 deletions .circleci/config.yml

This file was deleted.

15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
root = true

[*]
charset = utf-8
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
insert_final_newline = false
trim_trailing_whitespace = false

[*.{js,json,ts,mts,yml,yaml}]
indent_size = 2
indent_style = space
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/**/*.js
72 changes: 0 additions & 72 deletions .eslintrc

This file was deleted.

26 changes: 26 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"env": {
"browser": false,
"es6": true,
"node": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "tsconfig.json",
"sourceType": "module",
"ecmaVersion": 2020
},
"plugins": ["@typescript-eslint", "tap"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"rules": {
// The following rule is enabled only to supplement the inline suppression
// examples, and because it is not a recommended rule, you should either
// disable it, or understand what it enforces.
// https://typescript-eslint.io/rules/explicit-function-return-type/
"@typescript-eslint/explicit-function-return-type": "warn"
}
}
12 changes: 12 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# These are supported funding model platforms

github: [jsynowiec]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
17 changes: 17 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Node.js CI

on: [push]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: volta-cli/action@v1
- run: npm ci --no-audit
- run: npm run lint --if-present
- run: npm test
- run: npm run build --if-present
env:
CI: true
31 changes: 29 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,30 @@
# Logs
logs
*.log
npm-debug.log*

# Dependencies
node_modules/
coverage/
test-results.xml

# Coverage & Test output
coverage
.tap/

# Transpiled files
build/

# VS Code
.vscode/
!.vscode/tasks.js

# JetBrains IDEs
.idea/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Misc
.DS_Store
1 change: 0 additions & 1 deletion .npmignore

This file was deleted.

12 changes: 12 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"singleQuote": true,
"trailingComma": "all",
"overrides": [
{
"files": ["*.ts", "*.mts"],
"options": {
"parser": "typescript"
}
}
]
}
28 changes: 15 additions & 13 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,26 @@
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"program": "${workspaceFolder}/examples/array-change.js"
"name": "tap (current file)",
"program": "${workspaceFolder}/node_modules/.bin/tap",
"args": ["${relativeFile}"],
"cwd": "${workspaceFolder}"
},
{
"name": "Run mocha",
"name": "ts-node (current file)",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
"stopOnEntry": false,
"args": [
"test/**/*.js",
"--no-timeouts"
"args": ["${relativeFile}"],
"runtimeArgs": [
"-r",
"tsconfig-paths/register",
"-r",
"ts-node/register",
"--loader",
"ts-node/esm"
],
"cwd": "${workspaceRoot}",
"runtimeExecutable": null,
"env": {
"NODE_ENV": "testing"
}
"internalConsoleOptions": "openOnSessionStart"
}
]
}
}
12 changes: 0 additions & 12 deletions .vscode/tasks.json

This file was deleted.

63 changes: 0 additions & 63 deletions ChangeLog.md

This file was deleted.

Loading

0 comments on commit 1a2c79a

Please sign in to comment.