<
From version < 1.16 >
edited by Ecaterina Moraru (Valica)
on 2015/06/15
To version < 1.17 >
edited by Ecaterina Moraru (Valica)
on 2015/06/15
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -100,10 +100,32 @@
100 100  
101 101  = For Developers =
102 102  
103 -== <developer feature N> ==
103 +== Trigger Prototype Event Listeners from jQuery ==
104 104  
105 -<description of developer feature N>
105 +The event listeners registered from Prototype are now notified when a custom XWiki event is fired using the jQuery API.
106 106  
107 +{{code language="js"}}
108 +// Prototype (old code that you don't have time to rewrite)
109 +document.observe('xwiki:dom:updated', function(event) {
110 + event.memo.elements.each(function(element) {
111 + // Do something.
112 + });
113 +});
114 +...
115 +// jQuery (new code, in a different file/page)
116 +require(['jquery', 'xwiki-events-bridge'], function($) {
117 + $(document).trigger('xwiki:dom:updated', {'elements': $('.some-container').toArray()});
118 +});
119 +{{/code}}
120 +
121 +See the [[developer's guide>>platform:DevGuide.JavaScriptAPI||anchor="HBridgingcustomXWikieventsbetweenPrototypeandjQuery"]] for more details.
122 +
123 +== Integration tests for JavaScript with Jasmine + RequireJS + WebJars ==
124 +
125 +Using Jasmine, we have written a few integration tests for JavaScript code that uses AMD (RequireJS) and that has dependencies packaged as Webjars. We found out that the Jasmine Maven Plugin has support for both [[AMD>>http://searls.github.io/jasmine-maven-plugin/amd-support.html]] and [[WebJars>>http://searls.github.io/jasmine-maven-plugin/webjars-support.html]]. You can check out this [[commit>>https://github.com/xwiki/xwiki-platform/commit/a65618beeacb6c36aa5e6de178d7a495b6e18879]] to see how we configured the plugin in case you want to write similar tests for your extension or module.
126 +
127 +
128 +
107 107  {{comment}}
108 108  == Deprecated and Retired projects ==
109 109  
... ... @@ -112,19 +112,71 @@
112 112  
113 113  == Miscellaneous ==
114 114  
115 -<other dev stuff to add and link to JIRA for all issues fixed>
137 +* The XAR plugin's ##verify## mojo has been [[improved to allow passing a list of regexes to identify content and technical pages>>dev:Community.XARPlugin]]. For example:(((
138 +{{code language="xml"}}
139 +<plugin>
140 + <groupId>org.xwiki.commons</groupId>
141 + <artifactId>xwiki-commons-tool-xar-plugin</artifactId>
142 +...
143 + <configuration>
144 +...
145 + <!-- Consider all pages named *Translations as content pages by default -->
146 + <contentPages>
147 + <contentPage>.*Translations\.xml</contentPage>
148 + </contentPages>
149 + <!-- The EditTranslations page is not a Translation page and thus not a content page! -->
150 + <technicalPages>
151 + <technicalPage>EditTranslations\.xml</technicalPage>
152 + </technicalPages>
153 + </configuration>
154 +</plugin>
155 +{{/code}}
156 +)))
157 +* New ##$services.rendering.escape($content, $syntax)## method to escape XWiki syntax. See [[the documentation>>extensions:Extension.Rendering Module||anchor="HRenderingScriptService"]].
158 +* The HTML5 renderer is now bundled in XWiki Enterprise.
159 +* Added a new ##objectPolicy=updateOrCreate## parameter to the save action that allows editing and creating objects in one request. For more details, see [[the documentation>>platform:DevGuide.Standard URL Format||anchor="HParameter:objectPolicy"]].
160 +* It is now possible to select the output syntax of a skin, in order to use the correct renderer.
161 +* Ability to [[register a custom Resource Type>>extensions:Extension.Resource API||anchor="HAddinganewResourceTypeHandler"]].
162 +* The WebJar integration now registers a ##webjar## URL type using a [[Resource Handler>>extensions:Extension.Resource API]] (it was reusing the ##bin## URL type before). The new WebJAR URL format is:(((
163 +{{code language="none"}}
164 +http://<server>/<context path>/webjars/<path/to/resource>[?version=<version>&evaluate=true|false]
165 +{{/code}}
116 116  
167 +Note that you should use the [[exposed Script Service method to compute a WebJAR URL>>extensions:Extension.WebJars Integration]].
168 +)))
169 +* The mime type of uploaded attachment is now automatically stored in the database and won't be recalculated each time it's asked. Also a new API has been introduced in ##com.xpn.xwiki.doc.XWikiAttachment## to change it if needed.
170 +* The ConfigurableClass mechanism now supports adding field hints / descriptions. See the [[documentation>>extensions:Extension.Administration Application||anchor="HFieldsyoucandefine"]].
171 +* The ##xwiki-platform-legacy-crypto-script## legacy module has been removed as it was conflicting with the Bouncy Castle 1.52 upgrade and we considered that there was little chance that this module was used anywhere in any extension. If by chance (so to speak) you were using it, you'd need to use the newer ##xwiki-platform-crypto-script## module and rebuild your extension with it.
172 +* Added advanced search support to ##org.xwiki.extension.repository.ExtensionRepositoryManager##
173 +* The Velocity macros from the ##Main.SolrSearch## page have been moved to a separate page, ##Main.SolrSearchMacros##, which should ease the creation of a custom search page (e.g. if you want reuse some macros and to overwrite others).
174 +* Added callable support to JobProgressManager. See [[extensions:Extension.Job Module||anchor="HNotifyaboutprogress"]].
175 +
117 117  == Upgrades ==
118 118  
119 119  The following dependencies have been upgraded:
120 120  
121 -* <list libraries that have been upgraded>
180 +* [[httpclient and httpcore 4.4.1>>http://jira.xwiki.org/browse/XCOMMONS-778]]
181 +* [[Groovy 2.4.3>>http://jira.xwiki.org/browse/XCOMMONS-779]]
182 +* [[logback 1.1.3>>http://jira.xwiki.org/browse/XCOMMONS-781]]
183 +* [[cssparser 0.9.15>>http://jira.xwiki.org/browse/XCOMMONS-782]]
184 +* [[JGroups 3.6.3>>http://jira.xwiki.org/browse/XWIKI-11980]]
185 +* [[slf4j 1.7.12>>http://jira.xwiki.org/browse/XCOMMONS-786]]
186 +* [[Quartz 2.2.1>>http://jira.xwiki.org/browse/XWIKI-6465]]
187 +* [[commons-lang3 3.4>>http://jira.xwiki.org/browse/XCOMMONS-789]]
188 +* [[Maven 3.3.3>>http://jira.xwiki.org/browse/XCOMMONS-769]]
189 +* [[Bouncy Castle 1.52>>http://jira.xwiki.org/browse/XCOMMONS-794]]
190 +* [[Tika 1.8>>http://jira.xwiki.org/browse/XCOMMONS-793]]
191 +* [[Infinispan 7.1.1>>http://jira.xwiki.org/browse/XWIKI-12042]]
192 +* [[Jython 2.7.0>>http://jira.xwiki.org/browse/XWIKI-12040]]
193 +* [[Lucene and Solr 4.10.4>>http://jira.xwiki.org/browse/XWIKI-12044]]
194 +* [[sisu-guice 3.2.6>>http://jira.xwiki.org/browse/XCOMMONS-796]]
195 +* [[org.eclipse.sisu.plexus to 0.3.1>>http://jira.xwiki.org/browse/XCOMMONS-795]]
122 122  
123 123  = Translations =
124 124  
125 125  The following translations have been updated:
126 126  
127 -{{language codes="none, none"/}}
201 +{{language codes="de,fr,lv"/}}
128 128  
129 129  {{comment}}
130 130  = Tested Browsers & Databases =

Get Connected