Skip to content

Commit df6d56d

Browse files
eruniondimitropoulosfilfreire
authored
feat: update to upstream (readmeio#107)
* Total Overhaul (but with all the same fixtures!) (readmeio#248) see Kong#248 and the commits therein for more context. Essentially: - the original client fixtures were unchanged, which hopefully means the - all source code is now in strict mode TypeScript - tests are now all in jest - the file structure was reorganized so that everything for a particular client is in one place - the CLI is updated and now using yargs - all dependencies were updated and some (i.e. `format.utils`) were able to be removed entirely - more work left to do (including CI with GitHub Actions, for example), but this is a start * fix: case where if `postData.params` is missing some targets crash (readmeio#258) Co-authored-by: Dimitri Mitropoulos <[email protected]> * fix: compatibility issues on node 14 with `Object.hasOwn()` (readmeio#252) * fix: typo in the httpie `style` option not being correctly applied (readmeio#254) Co-authored-by: Dimitri Mitropoulos <[email protected]> * fix: axios targets not sending `x-www-form-urlencoded` properly (readmeio#255) Co-authored-by: Dimitri Mitropoulos <[email protected]> * feat: addition of a PHP target for Guzzle (readmeio#253) Co-authored-by: Dimitri Mitropoulos <[email protected]> * Add Github Build Workflow (readmeio#250) (readmeio#251) * Add Github Build Workflow (readmeio#250) * Edit job name * Replace install with ci on GH workflow * Add matrix with major node versions (14, 16, 18) * Disable fail-fast * Remove node v14 from build GH action * feat: native upload support in python `requests` snippets (readmeio#259) Co-authored-by: Dimitri Mitropoulos <[email protected]> * fix: `multipart/form-data` header issues with node/js fetch targets (readmeio#257) Co-authored-by: Dimitri Mitropoulos <[email protected]> * fix: headers not being properly applied to R httr snippets (readmeio#263) Co-authored-by: Dimitri Mitropoulos <[email protected]> * Fix build workflow dispatch rules (readmeio#265) * Chore: Remove travis links (readmeio#266) * Remove travis links * Update README.md Co-authored-by: Dimitri Mitropoulos <[email protected]> * chore: fixing eslint issues * fix: updating test snapshots * fix: getting the stock target tests all passing * fix: broken snapshots * fix: adding missing test coverage for addTarget and addTargetClient * fix: build issues * feat: getting the integration tests suite running again * fix: issues with the docker setup * fix: removing unnecessary tests * fix: running docker tests * fix: typo * fix: reverting some query param changes to node axios + request * fix: docker issues * fix: cleaning up the integration suite config system Co-authored-by: Dimitri Mitropoulos <[email protected]> Co-authored-by: Filipe Freire <[email protected]>
1 parent 19f5557 commit df6d56d

1,352 files changed

Lines changed: 16166 additions & 14148 deletions

File tree

Some content is hidden

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

.editorconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,15 @@ charset = utf-8
99
trim_trailing_whitespace = true
1010
insert_final_newline = true
1111

12+
[targets/**/fixtures/*]
13+
insert_final_newline = false
14+
15+
[**/http1.1/fixtures/*]
16+
end_of_line = crlf
17+
insert_final_newline = false
18+
19+
[**/http1.1/fixtures/jsonObj-multiline]
20+
end_of_line = unset
21+
1222
[*.md]
1323
trim_trailing_whitespace = false

.eslintignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
__tests__/__fixtures__/output
21
coverage/
3-
node_modules/
2+
dist/
3+
src/targets/**/fixtures/

.eslintrc

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,24 @@
11
{
2-
"extends": "@readme/eslint-config",
2+
"extends": [
3+
"@readme/eslint-config",
4+
"@readme/eslint-config/typescript",
5+
"@readme/eslint-config/testing"
6+
],
37
"root": true,
48
"parserOptions": {
59
"ecmaVersion": 2020
610
},
711
"rules": {
8-
"global-require": "off",
9-
"no-underscore-dangle": "off",
10-
"object-shorthand": "off"
12+
"@typescript-eslint/no-explicit-any": "off",
13+
"@typescript-eslint/no-use-before-define": "off",
14+
15+
"camelcase": "off",
16+
"class-methods-use-this": "off",
17+
"default-case": "off",
18+
"max-classes-per-file": "off",
19+
"no-param-reassign": "off",
20+
"no-underscore-dangle": ["error", { "allow": ["_boundary"] }],
21+
"spaced-comment": "off"
1122
},
1223
"env": {
1324
"browser": true

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
targets/http/http1.1/fixtures text

.github/workflows/build.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
types:
9+
- opened
10+
- synchronize
11+
workflow_dispatch:
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
node-version: [16, 18]
20+
steps:
21+
- name: Checkout branch
22+
uses: actions/checkout@v3
23+
24+
- name: Setup Node
25+
uses: actions/setup-node@v3
26+
with:
27+
node-version: ${{ matrix.node-version }}
28+
29+
- name: Install
30+
run: npm ci
31+
32+
- name: Test
33+
run: npm run test
34+
35+
- name: Lint
36+
run: npm run lint
37+
38+
- name: Build
39+
run: npm run build

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ name: "CodeQL"
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [main]
66
pull_request:
7-
branches: [ main ]
7+
branches: [main]
88
schedule:
9-
- cron: '0 0 1 * *'
9+
- cron: '0 12 * * 1'
1010

1111
jobs:
1212
analyze:

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
*.log
2-
node_modules/
32
coverage/
3+
dist/
4+
node_modules/
45
vendor/
56
composer.*

.npmignore

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
__tests__/
2-
.github/
3-
coverage/
4-
.editorconfig
5-
.eslint*
6-
.prettier*
1+
# Ignore everything by default
2+
# NOTE: NPM publish will never ignore package.json, package-lock.json, README, LICENSE, CHANGELOG
3+
# https://npm.github.io/publishing-pkgs-docs/publishing/the-npmignore-file.html
4+
*
5+
6+
# Don't ignore dist folder
7+
!dist/**

.prettierignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1-
__tests__/__fixtures__/output
1+
build/
22
coverage/
3+
dist/
4+
node_modules/
5+
src/targets/**/fixtures/

.prettierrc.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/** @type { import('prettier').Config } */
2+
module.exports = {
3+
arrowParens: 'avoid',
4+
bracketSameLine: false,
5+
bracketSpacing: true,
6+
jsxSingleQuote: false,
7+
printWidth: 100,
8+
proseWrap: 'never',
9+
quoteProps: 'as-needed',
10+
semi: true,
11+
singleAttributePerLine: true,
12+
singleQuote: true,
13+
tabWidth: 2,
14+
trailingComma: 'all',
15+
useTabs: false,
16+
};

0 commit comments

Comments
 (0)