1.5.3 • Published 3 years ago

parse-server-migration v1.5.3

Weekly downloads
3
License
ISC
Repository
github
Last release
3 years ago

What do this package do?

This package is used to apply newer parse server (v.3.x or above) from v.2.x without changing current source code.

Including

In 3.0.0, Parse.Promise is deprecated/removed, those code using Parse.Promise would fail. Also, Cloud functions interface now is Promise, they don't use callback response.success or response.error anymore.

This package would override these deprecated/removed interfaces so old codes would work again

  • Parse.Promise => Promise
  • Parse.Cloud(request, response) => Parse.Cloud(request)
  • Backbone style callback of { success, error } (new)

Usage

First, be free to upgrade your parse-server from v.2.x to latest

install parse-server-migration package

import the package anywhere is your code but make sure that you do it after init Parse server and before defining Cloud code

I recommend that this package just help you deal with old legacy codes, for new code, please follow latest Parse.com guideline.

Some unsupported functions

  • Parse.Promise.is
  • Parse.Promise.alway

if these codes aboves appear in your source code, please update it, because there is no similar thing like this in current native Promise of JS.

Also, beware of Parse.Promise.when, because with this package, .when is an alias of .all, so in .catch, error is now an array content first Object.Error instead of array content all Array<Object.Error>

1.5.3

3 years ago

1.5.2

3 years ago

1.5.1

4 years ago

1.5.0

4 years ago

1.4.1

4 years ago

1.4.0

4 years ago

1.3.6

4 years ago

1.3.5

4 years ago

1.3.4

4 years ago

1.3.3

4 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.0.2

4 years ago

1.1.0

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago