Skip to content

Commit 968bdbd

Browse files
authored
v3.0.0 (#257)
* Updated to Node 8 * Rewrote in Typescript * Calling the library as a function has been removed in favor of `csv.parse`. * `csv()` change to `csv.parse()` * Deprecated `fromString` in favor of `parseString` * `csv.fromString()` change to `csv.parseString()` * Deprecated `fromStream` in favor of `parseStream`a * `csv.fromStream()` change to `csv.parseStream()` * Deprecated`fromPath` in favor of `parseFile` * `csv.fromPath()` change to `csv.parseFile()` # Conflicts: # .travis.yml # Gruntfile.js # History.md # lib/formatter/formatter.js # lib/formatter/formatter_stream.js # package-lock.json # package.json
1 parent d4e33a2 commit 968bdbd

File tree

218 files changed

+352488
-1208908
lines changed

Some content is hidden

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

218 files changed

+352488
-1208908
lines changed

.eslintrc.js

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
module.exports = {
2+
parser: "@typescript-eslint/parser",
3+
"parserOptions": {
4+
"project": "./tsconfig.json"
5+
},
6+
plugins: ["@typescript-eslint"],
7+
extends: ["airbnb-base", "plugin:@typescript-eslint/recommended"],
8+
env: {
9+
node: true,
10+
mocha: true,
11+
},
12+
settings:{
13+
"import/resolver": {
14+
node: {
15+
extensions: [".ts"]
16+
}
17+
}
18+
},
19+
globals: {
20+
NodeJS: 'readonly',
21+
},
22+
rules: {
23+
"indent": [
24+
"error",
25+
4
26+
],
27+
"comma-dangle": ["error", {
28+
"arrays": "always-multiline",
29+
"objects": "always-multiline",
30+
"imports": "always-multiline",
31+
"exports": "always-multiline",
32+
"functions": "never"
33+
}],
34+
"no-restricted-syntax": ["error", "ForInStatement", "LabeledStatement", "WithStatement"],
35+
"object-curly-spacing": ["error", "always"],
36+
"array-bracket-spacing": ["error", "always"],
37+
"no-underscore-dangle": 0,
38+
"max-len": ["error", 150, 2, {
39+
ignoreComments: false,
40+
ignoreUrls: true,
41+
ignoreRegExpLiterals: true,
42+
ignoreStrings: true,
43+
ignoreTemplateLiterals: true,
44+
}]
45+
},
46+
};
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: "[BUG]"
5+
labels: bug
6+
assignees: doug-martin, dustinsmith1024
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Example file contents if applicable
16+
2. Example code to reproduce the issue.
17+
18+
**Expected behavior**
19+
A clear and concise description of what you expected to happen.
20+
21+
**Screenshots**
22+
If applicable, add screenshots to help explain your problem.
23+
24+
**Desktop (please complete the following information):**
25+
- OS: [e.g. MacOS]
26+
- OS Version [e.g. Mojave]
27+
- Node Version [e.g. 10.16.0]
28+
29+
**Additional context**
30+
Add any other context about the problem here.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: "[FEATURE]"
5+
labels: enhancement
6+
assignees: doug-martin, dustinsmith1024
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/pull_request_template.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
### All Submissions:
2+
3+
* [ ] Have you followed the guidelines in our Contributing document?
4+
* [ ] Have you checked to ensure there aren't other open [Pull Requests](https://github.com/c2fo/fast-csv/pulls) for the same update/change?
5+
6+
<!-- You can erase any parts of this template not applicable to your Pull Request. -->
7+
8+
### New Feature Submissions:
9+
10+
1. [ ] Have you added tests for the new feature
11+
2. [ ] Does your submission pass tests?
12+
3. [ ] Have you lint your code locally prior to submission?
13+
4. [ ] Have you updated the docs?
14+
* [ ] If you added new parsing or formatting options have you added them to the docs?
15+
* [ ] If applicable have you added an example to the parsing or formatting docs?
16+
17+
### Changes to Core Features:
18+
19+
* [ ] Have you added an explanation of what your changes do and why you'd like us to include them?
20+
* [ ] Have you written new tests for your core changes, as applicable?
21+
* [ ] Have you successfully ran tests with your changes locally?

.gitignore

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
node_modules
22
*.iml
33
.DS_Store
4-
lib-cov
54
.idea
6-
.grunt
7-
atlassian-ide-plugin.xml
5+
benchmark/results
6+
.nyc_output
7+
build
8+
**/tmp

.gitmodules

Lines changed: 0 additions & 3 deletions
This file was deleted.

.huskyrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"hooks": {
3+
"pre-commit": "npm test"
4+
}
5+
}

.jshintrc

Lines changed: 0 additions & 56 deletions
This file was deleted.

.mocharc.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
module.exports = {
2+
diff: true,
3+
require: ['ts-node/register', 'source-map-support/register'],
4+
extension: ['ts', 'js'],
5+
package: './package.json',
6+
reporter: 'spec',
7+
slow: 75,
8+
timeout: 2000,
9+
recursive: true,
10+
ui: 'bdd'
11+
};
12+
13+
// --recursive
14+
// test/

.npmignore

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
1+
benchmark
12
test
3+
src
24
node_modules
3-
docs
4-
docs-md
5-
support
6-
lib-cov
7-
Makefile
8-
benchmark
95
.travis.yml
10-
Gruntfile.js
116
History.md
127
examples
13-
8+
.nyc_output

0 commit comments

Comments
 (0)