changesets
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -204,2 +204,3 @@ /*! | ||
Changeset.unpack = function(packed) { | ||
if(packed == '') return new Changeset | ||
var matches = packed.match(/(\+|-)\w+?:[^:]+?:\w+?/g) | ||
@@ -206,0 +207,0 @@ if(!matches) throw new Error('Cannot unpack invalid serialized changeset string') |
@@ -1,4 +0,4 @@ | ||
{ | ||
{ | ||
"name": "changesets", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "A Changeset library incorporating an operational transformation (OT) algorithm -- for node and the browser!", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -19,6 +19,6 @@ | ||
## Install | ||
`npm install changesets` | ||
`npm install changesets` or `component install marcelklehr/changesets` | ||
## Usage | ||
In node, simply require `'changesets'` | ||
In node (and using component), simply require `'changesets'` | ||
```js | ||
@@ -28,7 +28,7 @@ var cs = require('changesets') | ||
In the browser, you need to load the package as a browserified javascript file... | ||
If you're not using component in the browser, you need to load the package as a browserified javascript file... | ||
``` | ||
<script type="text/javascript" src="node_modules/changesets/client-side.js"></script> | ||
``` | ||
... in order to be able to use the global `changesets` variable | ||
... and use the global `changesets` variable ;) | ||
@@ -137,5 +137,5 @@ ### Constructing and applying changesets | ||
* Simplify anyundo (large numbers of changesets have to be transformed against each other and an undo changseset) | ||
* Browsers can run out of memory when en-/decoding large texts in base64, ie. on paste -- it's not ideal | ||
* Use best effort (aka Fuzzy Patch -- see http://neil.fraser.name/writing/patch/) when applying a changeset, but allow people to check whether the changeset fits neatly, so they can still refuse changesets that don't fit neatly | ||
# License | ||
MIT |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Invalid manifest file
QualityPackage has an invalid manifest file and can cause installation problems if you try to use it.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
154247
16
3937
0
1
1
2
2
+ Addeddiff_match_patch@*
+ Addeddiff_match_patch@0.1.1(transitive)