Skip to content

docs: Update GridFS articles#808

Merged
dr-dimitru merged 4 commits intoveliovgroup:devfrom
karoube:docs-gridfs-update-1
Jun 8, 2022
Merged

docs: Update GridFS articles#808
dr-dimitru merged 4 commits intoveliovgroup:devfrom
karoube:docs-gridfs-update-1

Conversation

@make-github-pseudonymous-again
Copy link
Copy Markdown
Contributor

This PR updates the documentation articles about GridFS integration and migration. Hereunder is the list of changes:

  • Add additional argument against using gridfs-stream.
  • Update links to point to mongodb driver version 3.6.
  • Use MongoInternals.NpmModules.mongodb.modules since MongoInternals.NpmModule is undocumented:

https://github.com/meteor/meteor/blob/1dbf57ac5f9c405ee6bab30a13e51a3966d4014e/packages/mongo/mongo_driver.js#L16-L29

  • And it is missing from @types/meteor:

https://github.com/DefinitelyTyped/DefinitelyTyped/blob/8a0c0aa4bdeedc8e05d7cec96b9e3c2c639ca5ee/types/meteor/mongo.d.ts#L248-L259

dr-dimitru and others added 4 commits February 5, 2021 00:16
v2.0.0

Major update is out 🎉

__Major changes__:

- ⚠️ __[Deprecated]__ `streams` of `.insert()` method;
- ☝️ `http` module raplcaed with `fetch` — *As suggested* in `meteor@2.0.0` release and `http` package being deprecated;
- ☝️ `request-libcurl` replaced with `fetch` — As a fix for veliovgroup#781 and similar issues;
- ⚠️ __[removed]__ `file-type` library used to detect file-type (*file's mime-type*) based on "magic numbers". Now mime-type detected from data supplied by browser. __Regresion possible *upgrade with care* if your app rely on mime-type detected after file is fully uploaded to server, this change won't affect mime-type detected on the *Client* before file fully loaded to server__.

__Improved__:

- Pause/Resume logic when connection with server is interrupted (*no more missed chunks*);
- Chunks deliverability, including retries if chunk was sent only partially.

__Other changes__:

- 🤝 Compatibility with `meteor@2.0.0`;
- 📦 `ostrio:cookies@2.7.0`, *was `v2.6.1`*;
- 📦 `fs-extra@9.1.0`, *was `v9.0.1`*;
- 🖥 Update, refactor, and refine [demo app](https://github.com/veliovgroup/meteor-files-website);
- 👨‍💻 Update [`meteor-files-autoform`](https://github.com/VeliovGroup/meteor-autoform-file) package;
- 📋 Documentation refactoring.
v2.0.1

__New:__
- ✨ `config.disableSetTokenCookie` see veliovgroup#776 and veliovgroup#778 for details, thanks to @Kaczkazniszczenia

__Changed:__
- 👨‍💻 Abort http-fetch requests when calling `.abort()`;
- 👨‍💻 Make sure no other/delayed requests/responses executed;
Add additional argument against using `gridfs-stream`.
Update links to point to mongodb driver version 3.6.
Use `MongoInternals.NpmModules.mongodb.modules` since
`MongoInternals.NpmModule` is undocumented (see for instance
https://github.com/meteor/meteor/blob/1dbf57ac5f9c405ee6bab30a13e51a3966d4014e/packages/mongo/mongo_driver.js#L16-L29).
@dr-dimitru dr-dimitru merged commit a69b7d1 into veliovgroup:dev Jun 8, 2022
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.

3 participants