Hello community,
here is the log from the commit of package nodejs-json-stringify-safe for
openSUSE:Factory checked in at 2015-06-30 10:17:38
Comparing /work/SRC/openSUSE:Factory/nodejs-json-stringify-safe (Old)
and /work/SRC/openSUSE:Factory/.nodejs-json-stringify-safe.new (New)
Package is nodejs-json-stringify-safe
Changes:
---
/work/SRC/openSUSE:Factory/nodejs-json-stringify-safe/nodejs-json-stringify-safe.changes
2015-04-27 13:01:33.0 +0200
+++
/work/SRC/openSUSE:Factory/.nodejs-json-stringify-safe.new/nodejs-json-stringify-safe.changes
2015-06-30 10:17:39.0 +0200
@@ -1,0 +2,5 @@
+Sat Jun 27 05:28:13 UTC 2015 - i...@marguerite.su
+
+- update version 5.0.1
+
+---
Old:
json-stringify-safe-5.0.0.tgz
New:
json-stringify-safe-5.0.1.tgz
Other differences:
--
++ nodejs-json-stringify-safe.spec ++
--- /var/tmp/diff_new_pack.B2uzQz/_old 2015-06-30 10:17:39.0 +0200
+++ /var/tmp/diff_new_pack.B2uzQz/_new 2015-06-30 10:17:39.0 +0200
@@ -19,7 +19,7 @@
%define base_name json-stringify-safe
Name: nodejs-json-stringify-safe
-Version:5.0.0
+Version:5.0.1
Release:0
Summary:Like JSON.stringify, but doesn't throw on circular references
License:BSD-2-Clause
@@ -47,7 +47,7 @@
%files
%defattr(-,root,root,-)
-%doc README.md LICENSE
+%doc README.md LICENSE CHANGELOG.md
%{nodejs_modulesdir}/%{base_name}
%changelog
++ json-stringify-safe-5.0.0.tgz - json-stringify-safe-5.0.1.tgz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/package/.npmignore new/package/.npmignore
--- old/package/.npmignore 1970-01-01 01:00:00.0 +0100
+++ new/package/.npmignore 2015-05-19 03:41:30.0 +0200
@@ -0,0 +1 @@
+/*.tgz
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/package/CHANGELOG.md new/package/CHANGELOG.md
--- old/package/CHANGELOG.md1970-01-01 01:00:00.0 +0100
+++ new/package/CHANGELOG.md2015-05-19 03:41:30.0 +0200
@@ -0,0 +1,14 @@
+## Unreleased
+- Fixes stringify to only take ancestors into account when checking
+ circularity.
+ It previously assumed every visited object was circular which led to [false
+ positives][issue9].
+ Uses the tiny serializer I wrote for [Must.js][must] a year and a half ago.
+- Fixes calling the `replacer` function in the proper context (`thisArg`).
+- Fixes calling the `cycleReplacer` function in the proper context (`thisArg`).
+- Speeds serializing by a factor of
+ Big-O(h-my-god-it-linearly-searched-every-object) it had ever seen. Searching
+ only the ancestors for a circular references speeds up things considerably.
+
+[must]: https://github.com/moll/js-must
+[issue9]: https://github.com/isaacs/json-stringify-safe/issues/9
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/package/LICENSE new/package/LICENSE
--- old/package/LICENSE 2013-02-19 20:00:08.0 +0100
+++ new/package/LICENSE 2015-05-19 03:41:59.0 +0200
@@ -1,27 +1,15 @@
-Copyright (c) Isaac Z. Schlueter (Author)
-All rights reserved.
+The ISC License
-The BSD License
+Copyright (c) Isaac Z. Schlueter and Contributors
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions
-are met:
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.
-1. Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
-
-2. Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in the
- documentation and/or other materials provided with the distribution.
-
-THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS
-BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
-BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
-OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF