npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

h-pb

v1.0.0

Published

Patched verison of essential module

Downloads

4

Readme

ParseBone

ParseBone is a version of Parse 1.5.0 modified to be compatible with the open-source Parse server.

js-standard-style latest-release GitHub issues license

Why?

On January 28th, 2016, Facebook announced they would be discontinuing the Parse service, and provide an open-source version of Parse Server. This meant that we should host our Parse apps in our own servers. The problem is that the open-source version of Parse Server requires at least version 1.6.14 of the Parse JS SDK. Any versions of the Parse JS SDK released after version 1.5.0 do not come with Backbone-style functionality, which means that if you were using those features (Collection, View, Events, history, Router, etc), you cannot upgrade without a lot of refactoring, and therefore cannot move to a self hosted Parse Server.

ParseBone allows you to upgrade to a self hosted Parse Server because it keeps all the functionality of the Parse JS SDK 1.5.0, including the Backbone-style features, while being compatible with the Parse Server (tested with version 2.2.16).

Installation

Via Bower

bower install parsebone

Via NPM

npm install parsebone

Usage

ParseBone is an UMD module. You can load it into your application either by importing the module, or loading the script in your page.

If you are importing the ParseBone module via Webpack, Browserify or similar, make sure that the module name parsebone is being resolved correctly to the Bower or NPM packages folder.

Just like the original Parse JS SDK 1.5.0, ParseBone comes bundled with Underscore.js, you do not need to load it separately.

Via ES6 syntax

import {Parse, _} from 'parsebone'

Via CommonJS syntax

var Parse = require('parsebone').Parse
var _ = require('parsebone')._

Via the script tag

<script src="/scripts/parsebone.js"></script> // Change the path as necessary
// The objects Parse and _ will be available in the global scope

F.A.Q.

Why was ParseBone created?

Where I work, there were a few projects built with Parse, and making use of the Backbone-style functionality. Because these projects will be around for longer than the Parse service will be available, we had the option to refactor them, or modify the Parse JS SDK that we are using. Refactoring the projects was not an option due to time and cost. We researched a few projects that tried to add Backbone style features to the newer versions of Parse, but they didn't seem to do the job very well and left out a lot of behind the scenes work that Parse did.

If I'm not using Backbone-style functionality, do I need something like ParseBone?

No, you should be able to upgrade to the latest versions of the Parse JS SDK with ease.

What makes ParseBone compatible with the open-source Parse Server?

Some routes of the Parse API have changed, and ParseBone was updated to use the new routes.

Where can I find documentation for the library?

ParseBone has the exact same API as the original Parse JS SDK version 1.5.0. You can find a guide for the JS SDK at parseplatform.github.io/docs/js/guide. For the Backbone-style functionality, you can find documentation on the official web site at backbonejs.org. Please note that just like the original version 1.5.0 of the Parse JS SDK, the Backbone features included vary slightly.

Does ParseBone have the newer features of the Parse JS SDK?

No. ParseBone is a copy of version 1.5.0 of the Parse JS SDK, with some changes.

Are the newer features planned to be added to ParseBone?

No. The idea behind ParseBone is that you will be able to keep your app working without having to go through a lot of refactoring.

What other changes were made?

The source code was modified to conform to the linting rules of Standard. This should have no effect on performance or stability.

Do I need to make any changes on my Cloud code?

There are no changes required for ParseBone, but you do need to make some changes to migrate to the open-source Parse Server. There is a migration guide available at parse.com/migration.

Is this library tested?

The library is not tested using automated testing like unit testing or end-to-end testing, but it has been used in production code and is working as expected. Still, if you find bugs, please open an issue.

Brower support

ParseBone, although not tested in all of them, uses features supported by these browsers.

  • Android Browser 4+
  • Blackberry Browser 7+
  • Chrome 13+
  • Firefox 4+
  • Internet Explorer 9+
  • Opera 12+
  • Opera Mini 5+
  • Safari 7+

License

Released under the MIT license

Copyright

Copyright (c) 2016 Luís Rodrigues

Includes: Parse JavaScript SDK Copyright 2015 Parse, LLC

Includes: Underscore.js Copyright 2009-2012 Jeremy Ashkenas, DocumentCloud Inc.