History log of /yui3/src/json/js/stringify.js
Revision Date Author Comments Expand
10d8bafc5c24f3a4285cf6060a1935ba5cfc4b85 20-Aug-2011 Luke Smith <lsmith@yahoo-inc.com>

namespaced @property/@method cleanup Some files had new YUI.add() metadata property ordering, resulting in new -min files. No functionality was changed.

/yui3/build/async-queue/async-queue-debug.js /yui3/build/async-queue/async-queue.js /yui3/build/attribute-base/attribute-base-debug.js /yui3/build/attribute-base/attribute-base.js /yui3/build/base-base/base-base-debug.js /yui3/build/base-base/base-base.js /yui3/build/base-build/base-build-debug.js /yui3/build/base-build/base-build.js /yui3/build/base-pluginhost/base-pluginhost-debug.js /yui3/build/base-pluginhost/base-pluginhost.js /yui3/build/calendar-base/calendar-base-debug.js /yui3/build/calendar-base/calendar-base.js /yui3/build/calendar/calendar-debug.js /yui3/build/calendar/calendar.js /yui3/build/calendarnavigator/calendarnavigator-debug.js /yui3/build/calendarnavigator/calendarnavigator.js /yui3/build/classnamemanager/classnamemanager-debug.js /yui3/build/classnamemanager/classnamemanager.js /yui3/build/console-filters/console-filters-debug.js /yui3/build/console-filters/console-filters.js /yui3/build/console/console-debug.js /yui3/build/console/console.js /yui3/build/dataschema-base/dataschema-base-debug.js /yui3/build/dataschema-base/dataschema-base.js /yui3/build/dataschema-json/dataschema-json-debug.js /yui3/build/dataschema-json/dataschema-json.js /yui3/build/datasource-local/datasource-local-debug.js /yui3/build/datasource-local/datasource-local.js /yui3/build/dial/dial-debug.js /yui3/build/dial/dial-min.js /yui3/build/dial/dial.js /yui3/build/editor-base/editor-base-debug.js /yui3/build/editor-base/editor-base-min.js /yui3/build/editor-base/editor-base.js /yui3/build/editor-bidi/editor-bidi-debug.js /yui3/build/editor-bidi/editor-bidi-min.js /yui3/build/editor-bidi/editor-bidi.js /yui3/build/editor-br/editor-br-debug.js /yui3/build/editor-br/editor-br-min.js /yui3/build/editor-br/editor-br.js /yui3/build/editor-lists/editor-lists-debug.js /yui3/build/editor-lists/editor-lists-min.js /yui3/build/editor-lists/editor-lists.js /yui3/build/editor-para/editor-para-debug.js /yui3/build/editor-para/editor-para-min.js /yui3/build/editor-para/editor-para.js /yui3/build/editor-tab/editor-tab-debug.js /yui3/build/editor-tab/editor-tab-min.js /yui3/build/editor-tab/editor-tab.js /yui3/build/editor/editor-debug.js /yui3/build/editor/editor-min.js /yui3/build/editor/editor.js /yui3/build/event-base/event-base-debug.js /yui3/build/event-base/event-base.js /yui3/build/event-custom-base/event-custom-base-debug.js /yui3/build/event-custom-base/event-custom-base.js /yui3/build/event-delegate/event-delegate-debug.js /yui3/build/event-delegate/event-delegate.js /yui3/build/event-synthetic/event-synthetic-debug.js /yui3/build/event-synthetic/event-synthetic.js /yui3/build/exec-command/exec-command-debug.js /yui3/build/exec-command/exec-command-min.js /yui3/build/exec-command/exec-command.js /yui3/build/frame/frame-debug.js /yui3/build/frame/frame-min.js /yui3/build/frame/frame.js /yui3/build/io-base/io-base-debug.js /yui3/build/io-base/io-base.js /yui3/build/io-form/io-form-debug.js /yui3/build/io-form/io-form.js /yui3/build/io-queue/io-queue-debug.js /yui3/build/io-queue/io-queue.js /yui3/build/io-upload-iframe/io-upload-iframe-debug.js /yui3/build/io-upload-iframe/io-upload-iframe.js /yui3/build/io-xdr/io-xdr-debug.js /yui3/build/io-xdr/io-xdr.js /yui3/build/json-parse/json-parse-debug.js /yui3/build/json-parse/json-parse.js /yui3/build/json-stringify/json-stringify-debug.js /yui3/build/json-stringify/json-stringify.js /yui3/build/jsonp/jsonp-debug.js /yui3/build/jsonp/jsonp.js /yui3/build/loader-base/loader-base-debug.js /yui3/build/loader-base/loader-base.js /yui3/build/loader/loader-debug.js /yui3/build/loader/loader.js /yui3/build/node-core/node-core-debug.js /yui3/build/node-core/node-core.js /yui3/build/node-flick/node-flick-debug.js /yui3/build/node-flick/node-flick.js /yui3/build/node-menunav/node-menunav-debug.js /yui3/build/node-menunav/node-menunav.js /yui3/build/node/node-debug.js /yui3/build/node/node-min.js /yui3/build/node/node.js /yui3/build/plugin/plugin-debug.js /yui3/build/plugin/plugin.js /yui3/build/pluginhost-config/pluginhost-config-debug.js /yui3/build/pluginhost-config/pluginhost-config.js /yui3/build/range-slider/range-slider-debug.js /yui3/build/range-slider/range-slider.js /yui3/build/resize-base/resize-base-debug.js /yui3/build/resize-base/resize-base.js /yui3/build/resize-constrain/resize-constrain-debug.js /yui3/build/resize-constrain/resize-constrain.js /yui3/build/resize-plugin/resize-plugin-debug.js /yui3/build/resize-plugin/resize-plugin-min.js /yui3/build/resize-plugin/resize-plugin.js /yui3/build/resize-proxy/resize-proxy-debug.js /yui3/build/resize-proxy/resize-proxy.js /yui3/build/resize/resize-debug.js /yui3/build/resize/resize.js /yui3/build/scrollview-base/scrollview-base-debug.js /yui3/build/scrollview-base/scrollview-base.js /yui3/build/scrollview-list/scrollview-list-debug.js /yui3/build/scrollview-list/scrollview-list-min.js /yui3/build/scrollview-list/scrollview-list.js /yui3/build/scrollview-paginator/scrollview-paginator-debug.js /yui3/build/scrollview-paginator/scrollview-paginator.js /yui3/build/scrollview-scrollbars/scrollview-scrollbars-debug.js /yui3/build/scrollview-scrollbars/scrollview-scrollbars-min.js /yui3/build/scrollview-scrollbars/scrollview-scrollbars.js /yui3/build/selection/selection-debug.js /yui3/build/selection/selection-min.js /yui3/build/selection/selection.js /yui3/build/shim-plugin/shim-plugin-debug.js /yui3/build/shim-plugin/shim-plugin.js /yui3/build/slider-base/slider-base-debug.js /yui3/build/slider-base/slider-base.js /yui3/build/stylesheet/stylesheet-debug.js /yui3/build/stylesheet/stylesheet.js /yui3/build/test/test-debug.js /yui3/build/test/test.js /yui3/build/widget-anim/widget-anim-debug.js /yui3/build/widget-anim/widget-anim.js /yui3/build/widget-autohide/widget-autohide-debug.js /yui3/build/widget-autohide/widget-autohide.js /yui3/build/widget-base/widget-base-debug.js /yui3/build/widget-base/widget-base.js /yui3/build/widget-buttons/widget-buttons-debug.js /yui3/build/widget-buttons/widget-buttons.js /yui3/build/widget-htmlparser/widget-htmlparser-debug.js /yui3/build/widget-htmlparser/widget-htmlparser.js /yui3/build/widget-modality/widget-modality-debug.js /yui3/build/widget-modality/widget-modality.js /yui3/build/widget-position-align/widget-position-align-debug.js /yui3/build/widget-position-align/widget-position-align.js /yui3/build/widget-position-constrain/widget-position-constrain-debug.js /yui3/build/widget-position-constrain/widget-position-constrain.js /yui3/build/widget-position/widget-position-debug.js /yui3/build/widget-position/widget-position.js /yui3/build/widget-stack/widget-stack-debug.js /yui3/build/widget-stack/widget-stack.js /yui3/build/widget-stdmod/widget-stdmod-debug.js /yui3/build/widget-stdmod/widget-stdmod.js /yui3/build/yui-base/yui-base-debug.js /yui3/build/yui-base/yui-base.js /yui3/build/yui-core/yui-core-debug.js /yui3/build/yui-core/yui-core.js /yui3/build/yui-rls/yui-rls-debug.js /yui3/build/yui-rls/yui-rls.js /yui3/build/yui/yui-debug.js /yui3/build/yui/yui.js /yui3/src/async-queue/js/async-queue.js /yui3/src/attribute/js/Attribute.js /yui3/src/base/js/Base.js /yui3/src/base/js/BaseBuild.js /yui3/src/base/js/BasePluginHost.js /yui3/src/calendar/js/calendar-base.js /yui3/src/calendar/js/calendar.js /yui3/src/calendar/js/calendarnavigator.js /yui3/src/classnamemanager/js/classnamemanager.js /yui3/src/console-filters/js/console-filters.js /yui3/src/console/js/console.js /yui3/src/dataschema/js/dataschema-json.js /yui3/src/datasource/js/datasource-local.js /yui3/src/dial/js/Dial.js /yui3/src/editor/js/editor-base.js /yui3/src/editor/js/editor-bidi.js /yui3/src/event-custom/js/event-do.js /yui3/src/event/js/delegate.js /yui3/src/event/js/outside.js /yui3/src/event/js/synthetic.js /yui3/src/io/js/io-base.js /yui3/src/io/js/io-xdr.js stringify.js /yui3/src/jsonp/js/jsonp.js /yui3/src/loader/js/loader.js /yui3/src/node-flick/js/NodeFlick.js /yui3/src/node-menunav/js/node-menunav.js /yui3/src/node/js/shim-plugin.js /yui3/src/plugin/js/plugin.js /yui3/src/pluginhost/js/PluginHostConfig.js /yui3/src/resize/js/resize-base.js /yui3/src/scrollview/js/list-plugin.js /yui3/src/scrollview/js/paginator-plugin.js /yui3/src/scrollview/js/scrollbars-plugin.js /yui3/src/scrollview/js/scrollview-base.js /yui3/src/slider/js/slider-base.js /yui3/src/stylesheet/js/stylesheet.js /yui3/src/test/js/Assert.js /yui3/src/widget-anim/js/WidgetAnim.js /yui3/src/widget-autohide/js/Widget-Autohide.js /yui3/src/widget-buttons/js/Widget-Buttons.js /yui3/src/widget-modality/js/Widget-Modality.js /yui3/src/widget-position-align/js/Widget-PositionAlign.js /yui3/src/widget-position-constrain/js/Widget-PositionConstrain.js /yui3/src/widget-position/js/Widget-Position.js /yui3/src/widget-stack/js/Widget-Stack.js /yui3/src/widget-stdmod/js/Widget-StdMod.js /yui3/src/widget/js/Widget.js /yui3/src/widget/js/WidgetBaseIE.js /yui3/src/widget/js/WidgetHTMLParser.js /yui3/src/yui/js/yui-ua.js /yui3/src/yui/js/yui.js
d70adcf860fb9ae8b363b88f0ae456e8fed2b653 08-Apr-2011 Luke Smith <lsmith@yahoo-inc.com>

Update _COMMON_LENGTH immediately Not sure why I was waiting until the next call to stringify to take advantage of new special character fast pathing. Must be the heavy drinking.

4612c07daf3859e6ebfc408dc0ef9aed5f97f166 05-Apr-2011 Luke Smith <lsmith@yahoo-inc.com>

Break out common special chars from fn replace. Per suggestion from Brian Kaull, the performance of string.replace(regex, fn) is far slower than string.replace(regex, string), so for common special chars, such as \ \n " etc, preprocess strings with specific regexes targeting these characters, using the replace(regex, string) signature. Then process the string with the generic replace(regex, fn) for other special characters. So, more calls to replace are made, but very few should trigger replacement from the generic replace(regex, fn). Additionally, add adaptive caching of special chars to their targeting regex if that char commonly appears in strings. Base the cache threshold on new Y.JSON.charCacheThreshold config.

0412c2d4765a68ab264c5db6bf1b12fe446a6d3a 30-Jul-2010 Luke Smith <lsmith@yahoo-inc.com>

Add deprecated flag to dateToString method. Just use a replacer. The JSON util will follow spec as much as is reasonable.

dce9a75e7d05dc467910c89823039e62f310f3a9 17-Feb-2010 Luke Smith <lsmith@yahoo-inc.com>

Testing Y.config.win before use to support a headless environment.

34936fbb725f1aed7644fcabf999643513ad8644 17-Feb-2010 Luke Smith <lsmith@yahoo-inc.com>

Moving things around