Releases: norech/epitech.js
Releases · norech/epitech.js
v0.2.4
v0.2.3
v0.2.2
v0.2.0
- Added support for cookie-based auth providers
- Added downloadFile
- Added directories support in getProjectFiles
- Renamed getStages into getInternships
- Added indirect strategy for autologin link authentication
- Autologin link authentication is now considered legacy and support in epitech.js is no longer guaranteed
- Added
getStream
to IntraRequestProvider (internal change) - Added
getUserDetails
route to RawIntra
Breaking changes
- Added IntraError which are thrown in case of unexpected response (can be turned off with
noThrowIntraError: true
) - IntraRequestProvider
get
method is now split intoget
andjson
(internal change) - IntraRequestProvider constructor now takes a RawIntraConfig as argument instead (internal change)
- Performed more checks for the validity of provided autologin links
MIGRATION - AUTOLOGIN LINKS DEPRECATION
Since an internal change of the intranet, autologin links are now considered deprecated and will likely not work. You will need to update your code to use another authentication method.
You will need to use an auth provider to handle your authentication through session cookies.
The @epitech.js/puppeteer-auth-provider project has been created accordingly to this new requirement and the using of this module is now one of the new recommended ways to authenticate to the intranet endpoints with epitech.js.
The migration should be straightforward and as easy as possible, but it is not guaranteed to work for all users.
Read the README.md for more information on how to use the new authentication methods.
v0.1.8
v0.1.7
- Added timezones support
RawIntra
getRequestProvider
is no longer asynchronous- Fixed
RawIntra
solveUrl
issues in path solving in cases where the input path ends with a slash/
(e.g. project solving) - Added
setTimezone
andsetCookie
toIntraRequestProvider
- Added
getClient
toIntraRequestProvider
to access more easily the underlying axios client