Meteor-Community-Packages / meteor-simple-schema

Meteor integration package for simpl-schema
https://github.com/Meteor-Community-Packages/meteor-simple-schema
MIT License
919 stars 161 forks source link

Meteor 3.0 compatibility #741

Open jankapunkt opened 6 months ago

jankapunkt commented 6 months ago

This is now the updated migration base-branch, exceeding #740 / #738 This means all of the following tasks should be done in an own PR, pointing to this one's branch (migrate/3.0)

There has to be some preliminaries in order to be as non-breaking as possible:

The actual migration will then require the following:

jankapunkt commented 5 months ago

I come to the point to realize there is no way to support both sync and async computations. Since any method call will require async this bubbles down to all functions involved in the validation chain.

It's also nearly impossible to break up the existing syn structures and make them partially async using conditional return of Promises, where applicable.

It works for the labels but it does not work at all for doValidation which is basically the core validation routine, without making it all async.

I therefore will go down the path of making it fully async. Any objections please add here.

jankapunkt commented 4 weeks ago

published 2.0.0-rc300.0 → compatibility with 3.0-rc.2

vparpoil commented 2 weeks ago

Hi @jankapunkt , is 2.0.0-rc300.0 already supporting async functions for autoValue ? It doesn't seem to work in my setup. Thanks !