-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
Replace request with fetch (and fix other bugs) #86
Commits on Jan 16, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 486cd9d - Browse repository at this point
Copy the full SHA 486cd9dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 73bebc4 - Browse repository at this point
Copy the full SHA 73bebc4View commit details -
Replace rollup with esbuild and update ava
Now async/await support is required for building. As esbuild do not compile to ES5 old browsers are not supported at this moment. Tests are failing, probably the code that handles uploading got broken in 486cd9d.
Configuration menu - View commit details
-
Copy full SHA for a5a7246 - Browse repository at this point
Copy the full SHA a5a7246View commit details -
Configuration menu - View commit details
-
Copy full SHA for bd3ea5f - Browse repository at this point
Copy the full SHA bd3ea5fView commit details
Commits on Jan 17, 2022
-
Update Travis Node versions. Make the API easier to be overridden. Use a default user-agent and HTTP(S) agent. Implement again single-connection downloading as is the only reliable way to download at the moment. Fix the browser version to, at least, load file attributes.
Configuration menu - View commit details
-
Copy full SHA for 2ca44c2 - Browse repository at this point
Copy the full SHA 2ca44c2View commit details -
Try to fix issues while downloading
And remove Node 14 from Travis. I don't know why it's failing and I don't want to fix it.
Configuration menu - View commit details
-
Copy full SHA for 48248e2 - Browse repository at this point
Copy the full SHA 48248e2View commit details
Commits on Jan 19, 2022
-
I should have been commiting more often
The idea behind those changes is removing Babel dependencies by making Ava work using ES modules, but them I had to rename everything from .js to .mjs. I could add type: 'module' to package.json but them I think it could cause some issues to users of the library that were using it as a commonjs module. Well, now the source code is a es module that can be run without any compiling. I wonder if would be better to just export the source code as the module build and just compile for cjs and browsers/deno. Better not: currently using esbuild allows to switch to typescript quite easily. Browser tests removed: they were doing nothing important, just testing pure-javascript fallbacks, but currently the browser build is failing because the browser version of streams is not working well. Will be replaced with Deno based tests later as Deno is quite close to browsers but do not have the issue of being as slow and resource intensive as a browser. Moved from Travis to Github Actions.
Configuration menu - View commit details
-
Copy full SHA for 36e9fe2 - Browse repository at this point
Copy the full SHA 36e9fe2View commit details
Commits on Jan 20, 2022
-
Add note about MAC implementation
Just a reminder to myself that implementing MEGA's weird MAC using native functions is not only hard, but makes the code run slower (at least on Node 16). It's similar to this: https://en.wikipedia.org/wiki/CBC-MAC But there is a small change on this that makes things harder: the computation result is added to a second ECBC-MAC and the main one resets every chunk. Also, for some reason, trying to remove this.macs = [] by calculating the final mac in the checkMacBounding function made it slower too. The bad thing is that it increases memory usage, a 16 byte Buffer every 1 MB or so. If someone wants to fix those things, do the benchmarks and send a pull request.
Configuration menu - View commit details
-
Copy full SHA for d3b3c81 - Browse repository at this point
Copy the full SHA d3b3c81View commit details -
Separate authentication from encryption
Fixes #29. Finally. After FOUR years.
Configuration menu - View commit details
-
Copy full SHA for 17db83a - Browse repository at this point
Copy the full SHA 17db83aView commit details -
Package-lock.json was removed because Travis on 04cd018. It's returning because GitHub Actions. I hope it don't start causing issues again. Otherwise I will return to Travis!
Configuration menu - View commit details
-
Copy full SHA for 3bf81ff - Browse repository at this point
Copy the full SHA 3bf81ffView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4aec3be - Browse repository at this point
Copy the full SHA 4aec3beView commit details -
I expected to Github Actions to be better. And it is: now I know why Node 14 was failing. Or not, it should not, before Babel was compiling the code so the require "hack" was not an issue.
Configuration menu - View commit details
-
Copy full SHA for 261d118 - Browse repository at this point
Copy the full SHA 261d118View commit details -
Configuration menu - View commit details
-
Copy full SHA for b9b168b - Browse repository at this point
Copy the full SHA b9b168bView commit details -
Configuration menu - View commit details
-
Copy full SHA for c1ebb33 - Browse repository at this point
Copy the full SHA c1ebb33View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5afdac4 - Browse repository at this point
Copy the full SHA 5afdac4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2ce9485 - Browse repository at this point
Copy the full SHA 2ce9485View commit details -
The fix for #84 is going to break some code
But is needed for the greater well being of everyone
Configuration menu - View commit details
-
Copy full SHA for e90184b - Browse repository at this point
Copy the full SHA e90184bView commit details -
Fix issue when source is not defined
Also reduce timeout duration, it was too long.
Configuration menu - View commit details
-
Copy full SHA for 76c35e7 - Browse repository at this point
Copy the full SHA 76c35e7View commit details -
Tests will be built using esbuild and this file will be replaced with a Deno compatible version when testing. By compiling using esbuild migrating to Typescript should be easier.
Configuration menu - View commit details
-
Copy full SHA for c10d130 - Browse repository at this point
Copy the full SHA c10d130View commit details -
Storage and stream encryption tests can be run on built code, other tests will need to be compiled from source.
Configuration menu - View commit details
-
Copy full SHA for a85357c - Browse repository at this point
Copy the full SHA a85357cView commit details -
Also export stream.mac (otherwise implementing this test would be quite a headache).
Configuration menu - View commit details
-
Copy full SHA for df68697 - Browse repository at this point
Copy the full SHA df68697View commit details -
Configuration menu - View commit details
-
Copy full SHA for 01ff7f4 - Browse repository at this point
Copy the full SHA 01ff7f4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6832571 - Browse repository at this point
Copy the full SHA 6832571View commit details
Commits on Jan 21, 2022
-
Setup multiple runtime test environment
Tests are failing due to multiple issues such as: - Standard do not support top level await (it's in the works) - A replacement for Ava in Deno with the same API is missing - For some reason Ava is not finding the built tests
Configuration menu - View commit details
-
Copy full SHA for 72024bd - Browse repository at this point
Copy the full SHA 72024bdView commit details -
Rewrite tests to not depend on mega-mock. Check mega-mock state by hashing its internal state them verifying (it should be consistent between runs). Implement Ava compatibility layer for Deno. Remove t.plan() usage as it seem hard to implement in the compatibility layer. Also fix some issues in the runner. All Deno tests are failing.
Configuration menu - View commit details
-
Copy full SHA for 6fb0b85 - Browse repository at this point
Copy the full SHA 6fb0b85View commit details -
Fix some issues found in Deno tests
A process.nextTick shim was needed. Some old dependencies - "through", "stream-combiner" and "combined-stream" - had to be replaced with modern alternatives. Also Export a null Agent in noop.mjs to silent esbuild warnings. Improve development builds. Storage tests are failing for some reason, probably the upload method is broken. Downloading is now fixed in Deno and browsers.
Configuration menu - View commit details
-
Copy full SHA for 443ebaf - Browse repository at this point
Copy the full SHA 443ebafView commit details
Commits on Jan 22, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 1286a25 - Browse repository at this point
Copy the full SHA 1286a25View commit details -
test/helpers/test-runner.mjs is ignored in Standard temporally until it support top level await.
Configuration menu - View commit details
-
Copy full SHA for 8153a3e - Browse repository at this point
Copy the full SHA 8153a3eView commit details -
Fix zero length file uploading and add tests
Deno tests broke for some reason.
Configuration menu - View commit details
-
Copy full SHA for 595527a - Browse repository at this point
Copy the full SHA 595527aView commit details -
Configuration menu - View commit details
-
Copy full SHA for e9345bc - Browse repository at this point
Copy the full SHA e9345bcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6dcbf1f - Browse repository at this point
Copy the full SHA 6dcbf1fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 146583e - Browse repository at this point
Copy the full SHA 146583eView commit details -
Configuration menu - View commit details
-
Copy full SHA for a352c89 - Browse repository at this point
Copy the full SHA a352c89View commit details
Commits on Jan 23, 2022
-
Trying to solve test issues in CI by the third time
Change to cjs because Node V14 Also I had forgotten to publish the fix in mega-mock...
Configuration menu - View commit details
-
Copy full SHA for f2406a3 - Browse repository at this point
Copy the full SHA f2406a3View commit details -
Trying to solve test issues in CI by the fourth time
Make cjs change depend on AbortController support Deno don't add a content-length header for empty bodies Login test will always lack Also tried fixing the verify test from callback to promise (and turned that it was fine)
Configuration menu - View commit details
-
Copy full SHA for 18cd48e - Browse repository at this point
Copy the full SHA 18cd48eView commit details -
Configuration menu - View commit details
-
Copy full SHA for b47796a - Browse repository at this point
Copy the full SHA b47796aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9c77606 - Browse repository at this point
Copy the full SHA 9c77606View commit details
Commits on Jan 27, 2022
-
The extension already shows that it's the ESM entry point.
Configuration menu - View commit details
-
Copy full SHA for ed069d6 - Browse repository at this point
Copy the full SHA ed069d6View commit details
Commits on Feb 1, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 15366de - Browse repository at this point
Copy the full SHA 15366deView commit details -
Configuration menu - View commit details
-
Copy full SHA for 27758dd - Browse repository at this point
Copy the full SHA 27758ddView commit details -
Configuration menu - View commit details
-
Copy full SHA for 70ece83 - Browse repository at this point
Copy the full SHA 70ece83View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1f93edd - Browse repository at this point
Copy the full SHA 1f93eddView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8c636c3 - Browse repository at this point
Copy the full SHA 8c636c3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 830240e - Browse repository at this point
Copy the full SHA 830240eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 670cfe1 - Browse repository at this point
Copy the full SHA 670cfe1View commit details
Commits on Feb 2, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 557ab9d - Browse repository at this point
Copy the full SHA 557ab9dView commit details -
Configuration menu - View commit details
-
Copy full SHA for b928d6f - Browse repository at this point
Copy the full SHA b928d6fView commit details -
Configuration menu - View commit details
-
Copy full SHA for b8b36c1 - Browse repository at this point
Copy the full SHA b8b36c1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1c46314 - Browse repository at this point
Copy the full SHA 1c46314View commit details
Commits on Feb 3, 2022
-
Configuration menu - View commit details
-
Copy full SHA for a5babca - Browse repository at this point
Copy the full SHA a5babcaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 89e5d05 - Browse repository at this point
Copy the full SHA 89e5d05View commit details
Commits on Feb 4, 2022
-
Configuration menu - View commit details
-
Copy full SHA for d7ced10 - Browse repository at this point
Copy the full SHA d7ced10View commit details
Commits on Feb 5, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 23081d6 - Browse repository at this point
Copy the full SHA 23081d6View commit details -
Handle callback, API and sharing issues
Setting userAgent to null will disable the user-agent header. At the moment it is needed in Firefox until Mega allows the user-agent header to be set in API requests. User-agent and http agents are correctly accepted as API arguments The unshare file method was implemented. Logout callback is optional as before it didn't had a callback.
Configuration menu - View commit details
-
Copy full SHA for 688c56b - Browse repository at this point
Copy the full SHA 688c56bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 849dc73 - Browse repository at this point
Copy the full SHA 849dc73View commit details
Commits on Feb 6, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 3470343 - Browse repository at this point
Copy the full SHA 3470343View commit details -
Configuration menu - View commit details
-
Copy full SHA for e757775 - Browse repository at this point
Copy the full SHA e757775View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3c84246 - Browse repository at this point
Copy the full SHA 3c84246View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6566698 - Browse repository at this point
Copy the full SHA 6566698View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5366934 - Browse repository at this point
Copy the full SHA 5366934View commit details -
Configuration menu - View commit details
-
Copy full SHA for a5907d0 - Browse repository at this point
Copy the full SHA a5907d0View commit details -
Some tests: the only promisied function tested is mkdir and in order to test the other functions mega-mock needs to be updated.
Configuration menu - View commit details
-
Copy full SHA for 4696c9c - Browse repository at this point
Copy the full SHA 4696c9cView commit details -
Functions calling promisified functions don't need extra promisification. The multipleArgs was never used.
Configuration menu - View commit details
-
Copy full SHA for 6c84c84 - Browse repository at this point
Copy the full SHA 6c84c84View commit details
Commits on Feb 7, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 602e436 - Browse repository at this point
Copy the full SHA 602e436View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9908031 - Browse repository at this point
Copy the full SHA 9908031View commit details -
Configuration menu - View commit details
-
Copy full SHA for 014cece - Browse repository at this point
Copy the full SHA 014ceceView commit details
Commits on Feb 8, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 743d84c - Browse repository at this point
Copy the full SHA 743d84cView commit details
Commits on Feb 11, 2022
-
Configuration menu - View commit details
-
Copy full SHA for e2a0c9b - Browse repository at this point
Copy the full SHA e2a0c9bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 734e1e1 - Browse repository at this point
Copy the full SHA 734e1e1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7dce3b3 - Browse repository at this point
Copy the full SHA 7dce3b3View commit details -
Merge pull request #87 from ChampionBuffalo1/replacing-request
Adding typings.
Configuration menu - View commit details
-
Copy full SHA for 244f143 - Browse repository at this point
Copy the full SHA 244f143View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4d75545 - Browse repository at this point
Copy the full SHA 4d75545View commit details -
Configuration menu - View commit details
-
Copy full SHA for aec2760 - Browse repository at this point
Copy the full SHA aec2760View commit details -
test/helpers/test-runner.mjs had to be ignored again. Also fix some issues ts-standard found. Is a good thing that TypeScript still works without those ugly semicolons :)
Configuration menu - View commit details
-
Copy full SHA for 3f06b60 - Browse repository at this point
Copy the full SHA 3f06b60View commit details -
Seems it will solve the issue with Node 14.
Configuration menu - View commit details
-
Copy full SHA for 428c73e - Browse repository at this point
Copy the full SHA 428c73eView commit details -
As suggested here: standard/ts-standard#204 (comment)
Configuration menu - View commit details
-
Copy full SHA for 2e71fff - Browse repository at this point
Copy the full SHA 2e71fffView commit details -
Configuration menu - View commit details
-
Copy full SHA for 66e99f1 - Browse repository at this point
Copy the full SHA 66e99f1View commit details -
- Restore standard and use it for .js files - Use ts-standard only for index.d.ts - Split testing tasks which will allow the below - Do not lint TypeScript on Node 14 - Made the test runner default to Node to make the library more friendly to new contributors - Removed the now unneeded note in the readme.
Configuration menu - View commit details
-
Copy full SHA for 03de0c2 - Browse repository at this point
Copy the full SHA 03de0c2View commit details
Commits on Feb 12, 2022
-
Configuration menu - View commit details
-
Copy full SHA for b4cfff7 - Browse repository at this point
Copy the full SHA b4cfff7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 439728b - Browse repository at this point
Copy the full SHA 439728bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 96bdff0 - Browse repository at this point
Copy the full SHA 96bdff0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6949e51 - Browse repository at this point
Copy the full SHA 6949e51View commit details -
Add ESM types and fix CJS types
For some reason ts-typescript is not working with the ESM types: "Parsing error: "parserOptions.project" has been set for @typescript-eslint/parser." Because of that this file is not being linted at the moment.
Configuration menu - View commit details
-
Copy full SHA for 2ca0933 - Browse repository at this point
Copy the full SHA 2ca0933View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5b0cec6 - Browse repository at this point
Copy the full SHA 5b0cec6View commit details
Commits on Feb 13, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 48c7b57 - Browse repository at this point
Copy the full SHA 48c7b57View commit details -
Configuration menu - View commit details
-
Copy full SHA for a56b683 - Browse repository at this point
Copy the full SHA a56b683View commit details -
- Handle AbortError in the API - Make stream errors synchronous - Support single-stream download in browser/Deno - Handle download cancelling in single-stream downloading - Remove unneeded process.nextTick since promises are being used - Simplify promisify function - Add tests
Configuration menu - View commit details
-
Copy full SHA for 52b72c9 - Browse repository at this point
Copy the full SHA 52b72c9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 17778a0 - Browse repository at this point
Copy the full SHA 17778a0View commit details -
If you call sml while connections are still open then they will return ESID. But aborting is not enough, so API ignores responses after it was been closed.
Configuration menu - View commit details
-
Copy full SHA for afc8db5 - Browse repository at this point
Copy the full SHA afc8db5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 33cd0eb - Browse repository at this point
Copy the full SHA 33cd0ebView commit details
Commits on Feb 14, 2022
-
Also fix bandwidth limit error and error handling when using streams.
Configuration menu - View commit details
-
Copy full SHA for bac52ce - Browse repository at this point
Copy the full SHA bac52ceView commit details -
Attempt fixing upload and download errors
There is still an issue that's causing issues in Deno and browsers, for some reason chunks are being read out of order randomly.
Configuration menu - View commit details
-
Copy full SHA for f45fd5c - Browse repository at this point
Copy the full SHA f45fd5cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8029bcb - Browse repository at this point
Copy the full SHA 8029bcbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3245255 - Browse repository at this point
Copy the full SHA 3245255View commit details -
Children and parent were missing. MutableFile class is not exported.
Configuration menu - View commit details
-
Copy full SHA for cfffe33 - Browse repository at this point
Copy the full SHA cfffe33View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1d534af - Browse repository at this point
Copy the full SHA 1d534afView commit details
Commits on Feb 18, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 9b88cc8 - Browse repository at this point
Copy the full SHA 9b88cc8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 41bd26c - Browse repository at this point
Copy the full SHA 41bd26cView commit details -
Attempt fix for promise never resolving
Fix potential race condition. Split upload and download tests.
Configuration menu - View commit details
-
Copy full SHA for d5bc057 - Browse repository at this point
Copy the full SHA d5bc057View commit details -
Configuration menu - View commit details
-
Copy full SHA for 28dcae1 - Browse repository at this point
Copy the full SHA 28dcae1View commit details
Commits on Feb 19, 2022
-
Configuration menu - View commit details
-
Copy full SHA for f1a34fc - Browse repository at this point
Copy the full SHA f1a34fcView commit details