Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: migrate to typescript #4829

Closed
wants to merge 23 commits into from
Closed

Conversation

okxiaoliang4
Copy link

@okxiaoliang4 okxiaoliang4 commented Jul 3, 2022

migrate to typescript.

welcome to commit and review.

TODO:

  • adapters
    • adapters/http
    • adapters/index
    • adapters/xhr
  • cancel
    • cancel/CanceledError
    • cancel/CancelToken
    • cancel/isCancel
  • core
    • core/Axios
    • core/AxiosError
    • core/AxiosHeaders
    • core/buildFullPath
    • core/dispatchRequest
    • core/InterceptorManager
    • core/mergeConfig
    • core/settle
    • core/transformData
  • defaults
    • defaults/index
    • defaults/transitional
  • env
    • env/classes/FormData
    • env/data
  • helpers
    • helplers/AxiosTransformStream
    • helplers/AxiosURLSearchParams
    • helplers/bind
    • helplers/buildURL
    • helplers/combineURLs
    • helplers/cookies
    • helplers/deprecatedMethod
    • helplers/formDataToJSON
    • helpers/fromDataURI
    • helpers/isAbsoluteURL
    • helpers/isAxiosError
    • helpers/isURLSameOrigin
    • helpers/null
    • helpers/parseHeaders
    • helpers/parseProtocol
    • helpers/speedometer
    • helpers/spread
    • helpers/throttle
    • helpers/toFormData
    • helpers/toURLEncodedForm
    • helpers/validator
  • platform
    • platform/browser
    • platform/node
    • platform/index
  • axios
  • utils

jasonsaayman and others added 19 commits June 2, 2022 21:43
* Update base with master (axios#4755)

* docs: updated code of conduct to the lates version of the contributors covenant

* docs: fixed markdown issues in changelog

* docs: updated contributors guide

* docs: fixed linting errors in docs

* docs: removed cookbook as this is mostly irrelevant

* docs: updated contributing guide to no longer contain the release section as this is not needed

* docs: updated code of coduct, contributing gude and license for latest release version

* docs: upgrade guide and changelog updated

* fix(Tests): updating regex to allow for pre-releases

* chore(release): v1 alpha 1

* chore(Utils): added docs for utils functions

* chore(helpers/validator): added docs for validator function

* chore(helpers/toFormData): added docs for to form data functions

* chore(helpers/spread): added docs for spread functions

* docs(helpers/parseHeaders)

* docs(helpers/isAxiosError)

* docs(helpers/isAbsoluteURL)

* docs(helpers/fromDataURI)

* docs(helpers/formDataToJSON)

* docs(helpers/deprecatedMethod)

* docs(helpers/combineURLs)

* docs(helpers/buildURL)

* docs(helpers/AxiosURLSearchParams)

* docs(defaults/index)

* docs(core/transformData)

* docs(core/settle)

* docs(core/mergeConfig)

* docs(core/dispatchRequest)

* docs(core/buildFullPath)

* docs(core/InterceptorManager)

* docs(core/AxiosError)

* docs(core/Axios)

* docs(cancel/CanceledError)

* docs(cancel/CancelToken)

* docs(axios.js)

* docs(adapters/http)

* Bump eventsource from 1.1.0 to 1.1.1 (axios#4764)

Bumps [eventsource](https://github.com/EventSource/eventsource) from 1.1.0 to 1.1.1.
- [Release notes](https://github.com/EventSource/eventsource/releases)
- [Changelog](https://github.com/EventSource/eventsource/blob/master/HISTORY.md)
- [Commits](EventSource/eventsource@v1.1.0...v1.1.1)

---
updated-dependencies:
- dependency-name: eventsource
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jay <jasonsaayman@gmail.com>

* chore: Set permissions for GitHub actions (axios#4765)

Restrict the GitHub token permissions only to the required ones; this way, even if the attackers will succeed in compromising your workflow, they won’t be able to do much.

- Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions

https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions

https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs

[Keeping your GitHub Actions and workflows secure Part 1: Preventing pwn requests](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/)

Signed-off-by: neilnaveen <42328488+neilnaveen@users.noreply.github.com>

Co-authored-by: Jay <jasonsaayman@gmail.com>

* chore(GitHub Actions): rename master to main, added protections

* fixed(ci): removed wrkflow permissions that are wrong

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: neilnaveen <42328488+neilnaveen@users.noreply.github.com>
@okxiaoliang4 okxiaoliang4 marked this pull request as draft July 3, 2022 12:46
@amitsainii
Copy link
Contributor

amitsainii commented Oct 9, 2022

I'd love to help here if needed. I explored the axios codebase yesterday and I have opened a PR for a type fix today and also raised a type issue mentioning the possible solutions as well. If given the opportunity I'd love to contribute more frequently to this awesome project that I've been using for long without giving back to the community. This is just a request, I totally understand if this isn't feasible for some reason 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants