Skip to content

Releases: norech/epitech.js

v0.2.4

05 Sep 06:31
Compare
Choose a tag to compare
  • Fixed authentication issues

v0.2.3

04 Sep 08:51
Compare
Choose a tag to compare
  • Added debugPrintRequest in config
  • Fixed getProjectFiles when no path is given
  • Fixed throw of IntraError when requests returns a 403
  • Fixed trailing slash issue of v0.2.2
  • Removed trailing slash of IntraRequestProvider base url

v0.2.2

03 Sep 14:36
Compare
Choose a tag to compare
  • Added getCalendarFile
  • Fixed issues with solveUrl when path contained search queries (after ?)

v0.2.0

11 Aug 17:51
Compare
Choose a tag to compare
  • 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 into get and json (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

04 Jul 13:55
Compare
Choose a tag to compare
  • Fixed a bug with getProjectFiles

v0.1.7

02 Feb 08:40
Compare
Choose a tag to compare
  • 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 and setCookie to IntraRequestProvider
  • Added getClient to IntraRequestProvider to access more easily the underlying axios client

v0.1.6

24 Jan 14:09
Compare
Choose a tag to compare
0.1.6