Skip to content

Commit

Permalink
feat: convert the module to typescript (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanbmar committed May 20, 2023
1 parent 67c9758 commit 4e8e72b
Show file tree
Hide file tree
Showing 92 changed files with 12,024 additions and 9,049 deletions.
46 changes: 25 additions & 21 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,28 +1,32 @@
{
"extends": "airbnb-base",
"root": true,
"parser": "@typescript-eslint/parser",
"extends": [
"airbnb-base",
"airbnb-typescript/base",
"prettier",
"plugin:import/recommended",
"plugin:import/typescript"
],
"env": {
"node": true,
"jest": true
"es2022": true,
"jest": true,
"node": true
},
"rules":{
"indent": ["error", 4],
"linebreak-style": 0,
"no-await-in-loop": 0,
"no-param-reassign": 0,
"no-underscore-dangle": ["error", { "allow": ["_id"] }],
"max-len": ["error", 120, 2, {
"ignoreUrls": true,
"ignoreComments": false,
"ignoreRegExpLiterals": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true
}]
"plugins": ["prettier"],
"parserOptions": {
"project": "./tsconfig.json"
},
"settings": {
"import/resolver": {
"node": {
"paths": ["."]
"rules": {
"@typescript-eslint/lines-between-class-members": "off",
"indent": ["error", 2],
"no-await-in-loop": 0,
"prettier/prettier": [
"error",
{
"singleQuote": true,
"endOfLine": "auto"
}
}
]
}
}
7 changes: 5 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: test

on:
pull_request:
branches: [ master ]
branches:
- '*'

env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
Expand All @@ -14,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
node-version: [18.x]
steps:
- uses: actions/checkout@v3
- name: Use node.js ${{ matrix.node-version }}
Expand All @@ -28,5 +29,7 @@ jobs:
key: ${{ runner.os }}-${{ matrix.node-version }}-modules-${{ hashFiles('**/package-lock.json') }}
- name: Install
run: npm ci
- name: Build
run: npm run build
- name: run test
run: npm run test
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.idea
node_modules
dist
test/data
test/multipart-data
test/sync
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,23 @@

All notable changes to this project will be documented in this file.

## [4.0.0]

### Breaking Changes

* the abort feature from the TransferMonitor class has been replaced with a new abortSignal option
* `sync` method now returns a SyncBucketWithBucketCommandOutput, SyncBucketWithLocalCommandOutput or SyncLocalWithBucketCommandOutput object
* old methods `bucketWithBucket`, `bucketWithLocal` and `localWithBucket` have been removed. `sync` method should be used instead
* dynamic aws command input options can now be set by passing a function to the `commandInput` option (functions were previously defined for each commandInput property)

### Features

* migrate the module to typescript

### Test

* replace `jest` with the native node test runner

## [3.0.0]

### Breaking Changes
Expand Down
199 changes: 106 additions & 93 deletions README.md

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/.nojekyll
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false.
Loading

0 comments on commit 4e8e72b

Please sign in to comment.