RELEASENOTES 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494
  1. This file contains a brief overview of the changes made in each release.
  2. A detailed description of changes are available in the CHANGES.current
  3. and CHANGES files.
  4. Release Notes
  5. =============
  6. Detailed release notes are available with the release and are also
  7. published on the SWIG web site at https://swig.org/release.html.
  8. SWIG-4.1.1 summary:
  9. - Couple of stability fixes.
  10. - Stability fix in ccache-swig when calculating hashes of inputs.
  11. - Some template handling improvements.
  12. - R - minor fixes plus deprecation for rtypecheck typemaps being optional.
  13. SWIG-4.1.0 summary:
  14. - Add Javascript Node v12-v18 support, remove support prior to v6.
  15. - Octave 6.0 to 6.4 support added.
  16. - Add PHP 8 support.
  17. - PHP wrapping is now done entirely via PHP's C API - no more .php wrapper.
  18. - Perl 5.8.0 is now the oldest version SWIG supports.
  19. - Python 3.3 is now the oldest Python 3 version SWIG supports.
  20. - Python 3.9-3.11 support added.
  21. - Various memory leak fixes in Python generated code.
  22. - Scilab 5.5-6.1 support improved.
  23. - Many improvements for each and every target language.
  24. - Various preprocessor expression handling improvements.
  25. - Improved C99, C++11, C++14, C++17 support. Start adding C++20 standard.
  26. - Make SWIG much more move semantics friendly.
  27. - Add C++ std::unique_ptr support.
  28. - Few minor C++ template handling improvements.
  29. - Various C++ using declaration fixes.
  30. - Few fixes for handling Doxygen comments.
  31. - GitHub Actions is now used instead of Travis CI for continuous integration.
  32. - Add building SWIG using CMake as a secondary build system.
  33. - Update optional SWIG build dependency for regex support from PCRE to PCRE2.
  34. SWIG-4.0.2 summary:
  35. - A few fixes around doxygen comment handling.
  36. - Ruby 2.7 support added.
  37. - Various minor improvements to C#, D, Java, OCaml, Octave, Python,
  38. R, Ruby.
  39. - Considerable performance improvement running SWIG on large
  40. interface files.
  41. SWIG-4.0.1 summary:
  42. - SWIG now cleans up on error by removing all generated files.
  43. - Add Python 3.8 support.
  44. - Python Sphinx compatibility added for Doxygen comments.
  45. - Some minor regressions introduced in 4.0.0 were fixed.
  46. - Fix some C++17 compatibility problems in Python and Ruby generated
  47. code.
  48. - Minor improvements/fixes for C#, Java, Javascript, Lua, MzScheme,
  49. Ocaml, Octave and Python.
  50. SWIG-4.0.0 summary:
  51. - Support for Doxygen documentation comments which are parsed and
  52. converted into JavaDoc or PyDoc comments.
  53. - STL wrappers improved for C#, Java and Ruby.
  54. - C++11 STL containers added for Java, Python and Ruby.
  55. - Improved support for parsing C++11 and C++14 code.
  56. - Various fixes for shared_ptr.
  57. - Various C preprocessor corner case fixes.
  58. - Corner case fixes for member function pointers.
  59. - Python module overhaul by simplifying the generated code and turning
  60. most optimizations on by default.
  61. - %template improvements wrt scoping to align with C++ explicit
  62. template instantiations.
  63. - Added support for a command-line options file (sometimes called a
  64. response file).
  65. - Numerous enhancements and fixes for all supported target languages.
  66. - SWIG now classifies the status of target languages into either
  67. 'Experimental' or 'Supported' to indicate the expected maturity
  68. level.
  69. - Support for CFFI, Allegrocl, Chicken, CLISP, S-EXP, UFFI, Pike,
  70. Modula3 has been removed.
  71. - Octave 4.4-5.1 support added.
  72. - PHP5 support removed, PHP7 is now the supported PHP version.
  73. - Minimum Python version required is now 2.7, 3.2-3.7 are the only
  74. other versions supported.
  75. - Added support for Javascript NodeJS versions 2-10.
  76. - OCaml support is much improved and updated, minimum OCaml version
  77. required is now 3.12.0.
  78. SWIG-3.0.12 summary:
  79. - Add support for Octave-4.2.
  80. - Enhance %extend to support template functions.
  81. - Language specific enhancements and fixes for C#, D, Guile, Java, PHP7.
  82. SWIG-3.0.11 summary:
  83. - PHP 7 support added.
  84. - C++11 alias templates and type aliasing support added.
  85. - Minor fixes and enhancements for C# Go Guile Java Javascript Octave
  86. PHP Python R Ruby Scilab XML.
  87. SWIG-3.0.10 summary:
  88. - Regression fixes for smart pointers and importing Python modules.
  89. SWIG-3.0.9 summary:
  90. - Add support for Python's implicit namespace packages.
  91. - Fixes to support Go 1.6.
  92. - C++11 std::array support added for Java.
  93. - Improved C++ multiple inheritance support for Java/C# wrappers.
  94. - Various other minor fixes and improvements for C#, D, Go, Java,
  95. Javascript, Lua, Python, R, Ruby, Scilab.
  96. SWIG-3.0.8 summary:
  97. - pdf documentation enhancements.
  98. - Various Python 3.5 issues fixed.
  99. - std::array support added for Ruby and Python.
  100. - shared_ptr support added for Ruby.
  101. - Minor improvements for CFFI, Go, Java, Perl, Python, Ruby.
  102. SWIG-3.0.7 summary:
  103. - Add support for Octave-4.0.0.
  104. - Remove potential Android security exploit in generated Java classes.
  105. - Minor new features and bug fixes.
  106. SWIG-3.0.6 summary:
  107. - Stability and regression fixes.
  108. - Fixed parsing of C++ corner cases.
  109. - Language improvements and bug fixes for C#, Go, Java, Lua, Python, R.
  110. SWIG-3.0.5 summary:
  111. - Added support for Scilab.
  112. - Important Python regression fix when wrapping C++ default arguments.
  113. - Minor improvements for C#, Go, Octave, PHP and Python.
  114. SWIG-3.0.4 summary:
  115. - Python regression fix when wrapping C++ default arguments.
  116. - Improved error messages.
  117. SWIG-3.0.3 summary:
  118. - Add support for C++11 strongly typed enumerations.
  119. - Numerous bug fixes and minor enhancements for C#, D, Go, Java,
  120. Javascript, PHP, Perl and Python wrappers.
  121. SWIG-3.0.2 summary:
  122. - Bug fix during install and a couple of other minor changes.
  123. SWIG-3.0.1 summary:
  124. - Javascript module added. This supports JavascriptCore (Safari/Webkit),
  125. v8 (Chromium) and node.js currently.
  126. - A few notable regressions introduced in 3.0.0 have been fixed - in
  127. Lua, nested classes and parsing of operator <<.
  128. - The usual round of bug fixes and minor improvements for:
  129. C#, GCJ, Go, Java, Lua, PHP and Python.
  130. SWIG-3.0.0 summary:
  131. - This is a major new release focusing primarily on C++ improvements.
  132. - C++11 support added. Please see documentation for details of supported
  133. features: https://www.swig.org/Doc3.0/CPlusPlus11.html
  134. - Nested class support added. This has been taken full advantage of in
  135. Java and C#. Other languages can use the nested classes, but require
  136. further work for a more natural integration into the target language.
  137. We urge folk knowledgeable in the other target languages to step
  138. forward and help with this effort.
  139. - Lua: improved metatables and support for %nspace.
  140. - Go 1.3 support added.
  141. - Python import improvements including relative imports.
  142. - Python 3.3 support completed.
  143. - Perl director support added.
  144. - C# .NET 2 support is now the minimum. Generated using statements are
  145. replaced by fully qualified names.
  146. - Bug fixes and improvements to the following languages:
  147. C#, Go, Guile, Java, Lua, Perl, PHP, Python, Octave, R, Ruby, Tcl
  148. - Various other bug fixes and improvements affecting all languages.
  149. - Note that this release contains some backwards incompatible changes
  150. in some languages.
  151. - Full detailed release notes are in the changes file.
  152. SWIG-2.0.12 summary:
  153. - This is a maintenance release backporting some fixes from the pending
  154. 3.0.0 release.
  155. - Octave 3.8 support added.
  156. - C++11 support for new versions of erase/insert in the STL containers.
  157. - Compilation fixes on some systems for the generated Lua, PHP, Python
  158. and R wrappers.
  159. SWIG-2.0.11 summary:
  160. - Minor bug fixes and enhancements mostly in Python, but also
  161. C#, Lua, Ocaml, Octave, Perl, PHP, Python, R, Ruby, Tcl.
  162. SWIG-2.0.10 summary:
  163. - Ruby 1.9 support is now complete.
  164. - Add support for Guile 2.0 and Guile 1.6 support (GH interface) has
  165. been dropped.
  166. - Various small language neutral improvements and fixes.
  167. - Various bug fixes and minor improvements specific to C#, CFFI, D,
  168. Java, Octave, PHP, Python,
  169. - Minor bug fix in ccache-swig.
  170. - Development has moved to Github with Travis continuous integration
  171. testing - patches using https://github.com/swig/swig are welcome.
  172. SWIG-2.0.9 summary:
  173. - Improved typemap matching.
  174. - Ruby 1.9 support is much improved.
  175. - Various bug fixes and minor improvements in C#, CFFI, Go, Java,
  176. Modula3, Octave, Perl, Python, R, Ruby, Tcl and in ccache-swig.
  177. SWIG-2.0.8 summary:
  178. - Fix a couple of regressions introduced in 2.0.5 and 2.0.7.
  179. - Improved using declarations and using directives support.
  180. - Minor fixes/enhancements for C#, Java, Octave, Perl and Python.
  181. SWIG-2.0.7 summary:
  182. - Important regression fixes since 2.0.5 for typemaps in general and
  183. in Python.
  184. - Fixes and enhancements for Go, Java, Octave and PHP.
  185. SWIG-2.0.6 summary:
  186. - Regression fix for Python STL wrappers on some systems.
  187. SWIG-2.0.5 summary:
  188. - Official Android support added including documentation and examples.
  189. - Improvements involving templates:
  190. 1) Various fixes with templates and typedef types.
  191. 2) Some template lookup problems fixed.
  192. 3) Templated type fixes to use correct typemaps.
  193. - Autodoc documentation generation improvements.
  194. - Python STL container wrappers improvements including addition of
  195. stepped slicing.
  196. - Approximately 70 fixes and minor enhancements for the following
  197. target languages: AllegroCL, C#, D, Go, Java, Lua, Ocaml, Octave,
  198. Perl, PHP, Python, R, Ruby, Tcl, Xml.
  199. SWIG-2.0.4 summary:
  200. - This is mainly a Python oriented release including support for Python
  201. built-in types for superior performance with the new -builtin option.
  202. The -builtin option is especially suitable for performance-critical
  203. libraries and applications that call wrapped methods repeatedly.
  204. See the python-specific chapter of the SWIG manual for more info.
  205. - Python 3.2 support has also been added and various Python bugs have
  206. been fixed.
  207. - Octave 3.4 support has also been added.
  208. - There are also the usual minor generic improvements, as well as bug
  209. fixes and enhancements for D, Guile, Lua, Octave, Perl and Tcl.
  210. SWIG-2.0.3 summary:
  211. - A bug fix release including a couple of fixes for regressions in the
  212. 2.0 series.
  213. SWIG-2.0.2 summary:
  214. - Support for the D language has been added.
  215. - Various bug fixes and minor enhancements.
  216. - Bug fixes particular to the Clisp, C#, Go, MzScheme, Ocaml, PHP, R,
  217. Ruby target languages.
  218. SWIG-2.0.1 summary:
  219. - Support for the Go language has been added.
  220. - New regular expression (regex) encoder for renaming symbols based on
  221. the Perl Compatible Regular Expressions (PCRE) library.
  222. - Numerous fixes in reporting file and line numbers in error and warning
  223. messages.
  224. - Various bug fixes and improvements in the C#, Lua, Perl, PHP, Ruby
  225. and Python language modules.
  226. SWIG-2.0.0 summary:
  227. - License changes, see LICENSE file and https://www.swig.org/legal.html.
  228. - Much better nested class/struct support.
  229. - Much improved template partial specialization and explicit
  230. specialization handling.
  231. - Namespace support improved with the 'nspace' feature where namespaces
  232. can be automatically translated into Java packages or C# namespaces.
  233. - Improved typemap and symbol table debugging.
  234. - Numerous subtle typemap matching rule changes when using the default
  235. (SWIGTYPE) type. These now work much like C++ class template partial
  236. specialization matching.
  237. - Other small enhancements for typemaps. Typemap fragments are also now
  238. official and documented.
  239. - Warning and error display refinements.
  240. - Wrapping of shared_ptr is improved and documented now.
  241. - Numerous C++ unary scope operator (::) fixes.
  242. - Better support for boolean expressions.
  243. - Various bug fixes and improvements in the Allegrocl, C#, Java, Lua,
  244. Octave, PHP, Python, R, Ruby and XML modules.
  245. SWIG-1.3.40 summary:
  246. - SWIG now supports directors for PHP.
  247. - PHP support improved in general.
  248. - Octave 3.2 support added.
  249. - Various bug fixes/enhancements for Allegrocl, C#, Java, Octave, Perl,
  250. Python, Ruby and Tcl.
  251. - Other generic fixes and minor new features.
  252. SWIG-1.3.39 summary:
  253. - Some new small feature enhancements.
  254. - Improved C# std::vector wrappers.
  255. - Bug fixes: mainly Python, but also Perl, MzScheme, CFFI, Allegrocl
  256. and Ruby
  257. SWIG-1.3.38 summary:
  258. - Output directory regression fix and other minor bug fixes
  259. SWIG-1.3.37 summary:
  260. - Python 3 support added
  261. - SWIG now ships with a version of ccache that can be used with SWIG.
  262. This enables the files generated by SWIG to be cached so that repeated
  263. use of SWIG on unchanged input files speeds up builds quite considerably.
  264. - PHP 4 support removed and PHP support improved in general
  265. - Improved C# array support
  266. - Numerous Allegro CL improvements
  267. - Bug fixes/enhancements for Python, PHP, Java, C#, Chicken, Allegro CL,
  268. CFFI, Ruby, Tcl, Perl, R, Lua.
  269. - Other minor generic bug fixes and enhancements
  270. SWIG-1.3.36 summary:
  271. - Enhancement to directors to wrap all protected members
  272. - Optimisation feature for objects returned by value
  273. - A few bugs fixes in the PHP, Java, Ruby, R, C#, Python, Lua and
  274. Perl modules
  275. - Other minor generic bug fixes
  276. SWIG-1.3.35 summary:
  277. - Octave language module added
  278. - Bug fixes in Python, Lua, Java, C#, Perl modules
  279. - A few other generic bugs and runtime assertions fixed
  280. SWIG-1.3.34 summary:
  281. - shared_ptr support for Python
  282. - Support for latest R - version 2.6
  283. - Various minor improvements/bug fixes for R, Lua, Python, Java, C#
  284. - A few other generic bug fixes, mainly for templates and using statements
  285. SWIG-1.3.33 summary:
  286. - Fix regression for Perl where C++ wrappers would not compile
  287. - Fix regression parsing macros
  288. SWIG-1.3.32 summary:
  289. - shared_ptr support for Java and C#
  290. - Enhanced STL support for Ruby
  291. - Windows support for R
  292. - Fixed long-standing memory leak in PHP Module
  293. - Numerous fixes and minor enhancements for Allegrocl, C#, cffi, Chicken, Guile,
  294. Java, Lua, Ocaml, Perl, PHP, Python, Ruby, Tcl.
  295. - Improved warning support
  296. SWIG-1.3.31 summary:
  297. - Python modern classes regression fix
  298. SWIG-1.3.30 summary:
  299. - Python-2.5 support
  300. - New language module: R
  301. - Director support added for C#
  302. - Numerous director fixes and improvements
  303. - Improved mingw/msys support
  304. - Better constants support in Guile and chicken modules
  305. - Support for generating PHP5 class wrappers
  306. - Important Java premature garbage collection fix
  307. - Minor improvements/fixes in cffi, php, allegrocl, perl, chicken, lua, ruby,
  308. ocaml, python, java, c# and guile language modules
  309. - Many many other bug fixes
  310. SWIG-1.3.29 summary:
  311. - Numerous important bug fixes
  312. - Few minor new features
  313. - Some performance improvements in generated code for Python
  314. SWIG-1.3.28 summary:
  315. - More powerful renaming (%rename) capability.
  316. - More user friendly warning handling.
  317. - Add finer control for default constructors and destructors. We discourage
  318. the use of the 'nodefault' option, which disables both constructors and
  319. destructors, leading to possible memory leaks. Use instead 'nodefaultctor'
  320. and/or 'nodefaultdtor'.
  321. - Automatic copy constructor wrapper generation via the 'copyctor' option/feature.
  322. - Better handling of Windows extensions and types.
  323. - Better runtime error reporting.
  324. - Add the %catches directive to catch and dispatch exceptions.
  325. - Add the %naturalvar directive for more 'natural' variable wrapping.
  326. - Better default handling of std::string variables using the %naturalvar directive.
  327. - Add the %allowexcept and %exceptionvar directives to handle exceptions when
  328. accessing a variable.
  329. - Add the %delobject directive to mark methods that act like destructors.
  330. - Add the -fastdispatch option to enable smaller and faster overload dispatch
  331. mechanism.
  332. - Template support for %rename, %feature and %typemap improved.
  333. - Add/doc more debug options, such as -dump_module, -debug_typemaps, etc.
  334. - Unified typemap library (UTL) potentially providing core typemaps for all
  335. scripting languages based on the recently evolving Python typemaps.
  336. - New language module: Common Lisp with CFFI.
  337. - Python, Ruby, Perl and Tcl use the new UTL, many old reported and hidden
  338. errors with typemaps are now fixed.
  339. - Initial Java support for languages using the UTL via GCJ, you can now use
  340. Java libraries in your favorite script language using gcj + swig.
  341. - Tcl support for std::wstring.
  342. - PHP4 module update, many error fixes and actively maintained again.
  343. - Allegrocl support for C++, also enhanced C support.
  344. - Ruby support for bang methods.
  345. - Ruby support for user classes as native exceptions.
  346. - Perl improved dispatching in overloaded functions via the new cast and rank
  347. mechanism.
  348. - Perl improved backward compatibility, 5.004 and later tested and working.
  349. - Python improved backward compatibility, 1.5.2 and later tested and working.
  350. - Python can use the same cast/rank mechanism via the -castmode option.
  351. - Python implicit conversion mechanism similar to C++, via the %implicitconv
  352. directive (replaces and improves the implicit.i library).
  353. - Python threading support added.
  354. - Python STL support improved, iterators are supported and STL containers can
  355. use now the native PyObject type.
  356. - Python many performance options and improvements, try the -O option to test
  357. all of them. Python runtime benchmarks show up to 20 times better performance
  358. compared to 1.3.27 and older versions.
  359. - Python support for 'multi-inheritance' on the python side.
  360. - Python simplified proxy classes, now swig doesn't need to generate the
  361. additional 'ClassPtr' classes.
  362. - Python extended support for smart pointers.
  363. - Python better support for static member variables.
  364. - Python backward compatibility improved, many projects that used to work
  365. only with swig-1.3.21 to swig-1.3.24 are working again with swig-1.3.28
  366. - Python test-suite is now 'valgrinded' before release, and swig also
  367. reports memory leaks due to missing destructors.
  368. - Minor bug fixes and improvements to the Lua, Ruby, Java, C#, Python, Guile,
  369. Chicken, Tcl and Perl modules.
  370. SWIG-1.3.27 summary:
  371. - Fix bug in anonymous typedef structures which was leading to strange behaviour
  372. SWIG-1.3.26 summary:
  373. - New language modules: Lua, CLISP and Common Lisp with UFFI.
  374. - Big overhaul to the PHP module.
  375. - Change to the way 'extern' is handled.
  376. - Minor bug fixes specific to C#, Java, Modula3, Ocaml, Allegro CL,
  377. XML, Lisp s-expressions, Tcl, Ruby and Python modules.
  378. - Other minor improvements and bug fixes.
  379. SWIG-1.3.25 summary:
  380. - Improved runtime type system. Speed of module loading improved in
  381. modules with lots of types. SWIG_RUNTIME_VERSION has been increased
  382. from 1 to 2, but the API is exactly the same; only internal changes
  383. were made.
  384. - The languages that use the runtime type system now support external
  385. access to the runtime type system.
  386. - Various improvements with typemaps and template handling.
  387. - Fewer warnings in generated code.
  388. - Improved colour documentation.
  389. - Many C# module improvements (exception handling, prevention of early
  390. garbage collection, C# attributes support added, more flexible type
  391. marshalling/asymmetric types.)
  392. - Minor improvements and bug fixes specific to the C#, Java, TCL, Guile,
  393. Chicken, MzScheme, Perl, Php, Python, Ruby and Ocaml modules).
  394. - Various other bug fixes and memory leak fixes.
  395. SWIG-1.3.24 summary:
  396. - Improved enum handling
  397. - More runtime library options
  398. - More bugs fixes for templates and template default arguments, directors
  399. and other areas.
  400. - Better smart pointer support, including data members, static members
  401. and %extend.
  402. SWIG-1.3.23 summary:
  403. - Improved support for callbacks
  404. - Python docstring support and better error handling
  405. - C++ default argument support for Java and C# added.
  406. - Improved c++ default argument support for the scripting languages plus
  407. option to use original (compact) default arguments.
  408. - %feature and %ignore/%rename bug fixes and mods - they might need default
  409. arguments specified to maintain compatible behaviour when using the new
  410. default arguments wrapping.
  411. - Runtime library changes: Runtime code can now exist in more than one module
  412. and so need not be compiled into just one module
  413. - Further improved support for templates and namespaces
  414. - Overloaded templated function support added
  415. - More powerful default typemaps (mixed default typemaps)
  416. - Some important %extend and director code bug fixes
  417. - Guile now defaults to using SCM API. The old interface can be obtained by
  418. the -gh option.
  419. - Various minor improvements and bug fixes for C#, Chicken, Guile, Java,
  420. MzScheme, Perl, Python and Ruby
  421. - Improved dependencies generation for constructing Makefiles.
  422. SWIG-1.3.22 summary:
  423. - Improved exception handling and translation of C errors or C++
  424. exceptions into target language exceptions.
  425. - Improved enum support, mapping to built-in Java 1.5 enums and C#
  426. enums or the typesafe enum pattern for these two languages.
  427. - Python - much better STL support and support for std::wstring,
  428. wchar_t and FILE *.
  429. - Initial support for Modula3 and Allegro CL.
  430. - 64 bit TCL support.
  431. - Java and C#'s proxy classes are now nearly 100% generated from
  432. typemaps and/or features for finer control on the generated code.
  433. - SWIG runtime library support deprecation.
  434. - Improved documentation. SWIG now additionally provides documentation
  435. in the form of a single HTML page as well as a pdf document.
  436. - Enhanced C++ friend declaration support.
  437. - Better support for reference counted classes.
  438. - Various %fragment improvements.
  439. - RPM fixes.
  440. - Various minor improvements and bug fixes for C#, Chicken, Guile, Java,
  441. MzScheme, Perl, Php, Python, Ruby and XML.