- Timestamp:
- Aug 1, 2017, 3:45:14 PM (9 years ago)
- Branches:
- debian/bullseye, debian/jessie
- Children:
- ce0f6a4
- Parents:
- bcf0be5 (diff), cd0f9cc (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/puppetcode/environments/gnuboat/modules/stdlib/CHANGELOG.md
rbcf0be5 rad28f83 1 ## Supported Release 4.17.1 2 ### Summary 3 4 Small release to address a bug (PUP-7650). Also pushes the Puppet version compatibility to 4.7.0. 5 6 #### Bugfixes 7 - (MODULES-5095) Workaround for PUP-7650 8 - (FM-6197) Formatting fixes for file_line resource 9 10 11 ## Supported Release 4.17.0 12 ### Summary 13 This release adds support for internationalization. It also contains Japanese translations for the README, summary and description of the metadata.json and major cleanups in the README. Additional folders have been introduced called locales and readmes where translation files can be found. A number of features and bug fixes are also included in this release. It also adds a new function `glob()` for expanding file lists. Also works around an issue that appeared in puppet 4.6.0 involving types being declared multiple times. 14 15 #### Features 16 - Addition of POT file / folder structure for i18n. 17 - Addition of Internationalized READMEs. 18 - `glob()` function 19 20 ### Fixed 21 - Occasional duplicate type definitions when using `defined_with_params()` 22 - `file_line` encoding issue on ruby 1.8 (unsupported) 23 - Huge readme refresh 24 25 ## Supported Release 4.16.0 26 ### Summary 27 28 This release sees a massive update to all unit tests to test UTF8 characters. There are also multiple cleanups in preparation for internationalization. Alongside this, improvements to ipv6 support, a new length function compatible with Puppet 4, and an update to path types. Also contains multiple bug fixes around functionality and tests. 29 30 #### Features 31 - Addition of coverage in all unit tests for functions, data and resource types for UTF8 for i18n. 32 - All strings within the readme and functions that are split over two lines have been combined in preparation for i18n parser/decorator. 33 - Improvement on the ipv6 support for type - Improves regex to catch some valid (but lesser known) ipv6 strings, mostly those which are a mix of ipv6 strings and embedded ipv6 numbers. 34 - Adds a new parameter `encoding` to allow non UTF-8 files to specify a file encoding. This prevents receiving the error message "invalid byte sequence in UTF-8" when special characters that are not UTF-8 encoded appear in the input stream, such as the copyright symbol. 35 - Addition of the new length function. Returns the length of a given string, array or hash. To eventually replace the deprecated size() function as can handle the new type functionality introduced in Puppet 4. 36 - Permit double slash in absolute/Unix path types. 37 38 #### Bugfixes 39 - Fix unsupported data type error with rspec-puppet master. 40 - Now allows test module metadata.json to be read by Puppet. 41 - Fix acceptance test failure "Hiera is not a class". 42 - Removal of unsupported platforms and future parser setting in acceptance tests. 43 - Regex for tuple checking has been loosened. 44 - Ensure_packages function - Now only tries to apply the resource if not defined. 45 - (MODULES-4528) Use versioncmp to check Puppet version for 4.10.x compat. 46 - Adds comments to warn for UTF8 incompatibility of the functions that may not be compatible with UTF8 with Ruby < 2.4.0. 47 48 ## Supported Release 4.15.0 49 ### Summary 50 51 This release introduces multiple new functions, a new fact and the addition of Ubuntu Xenial support. Also includes a bugfix and documentation update. 52 53 #### Features 54 - Addition of puppet_server fact to return agents server. 55 - Addition of a pry function. 56 - Addition of tests for ensure_resources. 57 - Addition of FQDN UUID generation function. 58 - Addition of Ubuntu Xenial to OS Support. 59 60 ####Bugfixes 61 - Ensure_packages now works with Ruby < 2.0. 62 - Updated the documentation of str2bool function. 63 64 ## Supported Release 4.14.0 65 ### Summary 66 67 Adds several new features and updates, especially around refining the deprecation and validate_legacy functions. Also includes a Gemfile update around an issue with parallel_tests dependancy for different versions of Ruby. 68 69 #### Features 70 - Deprecation function now uses puppet stacktrace if available. 71 - join_key_to_values function now handles array values. If values are arrays, multiple keys are added for each element. 72 - Updated Gemfile to deal with parallel_tests Ruby dependancy (MODULES-3983). 73 - Updated/Fixed ipv4 regex validator (MODULES-3980). 74 - Deprecation clarification added to README. 75 76 #### Bugfixes 77 - README typo fixes. 78 - Use .dup to duplicate classes for modification (MODULES-3829). 79 - Fixes spec failures that were caused by a change in the tested error message in validate_legacy_spec. 80 - Broken link to validate_legacy docs fixed. 81 - Updates deprecation tests to include future parser. 82 83 ## Supported Release 4.13.1 84 ### Summary 85 86 This bugfix release addresses the `undefined method 'optional_repeated_param'` error messages seen by users of puppet 3.7. 87 88 It also improves the user experience around function deprecations by emitting one warning per function(-name) instead of only one deprecation overall. This allows users to identify all deprecated functions used in one agent run, with less back-and-forth. 89 90 #### Bugfixes 91 92 * Emit deprecations warnings for each function, instead of once per process. (MODULES-3961) 93 * Use a universally available API for the v4 deprecation stubs of `is_*` and `validate_*`. (MODULES-3962) 94 * Make `getvar()` compatible to ruby 1.8.7. (MODULES-3969) 95 * Add v4 deprecation stubs for the `is_` counterparts of the deprecated functions to emit the deprecations warnings in all cases. 96 97 98 ## Supported Release 4.13.0 99 ### Summary 100 101 This version of stdlib deprecates a whole host of functions, and provides stepping stones to move to Puppet 4 type validations. Be sure to check out the new `deprecation()` and `validate_legacy()` functions to migrate off the deprecated v3-style data validations. 102 103 Many thanks to all community contributors: bob, Dmitry Ilyin, Dominic Cleal, Joris, Joseph Yaworski, Loic Antoine-Gombeaud, Maksym Melnychok, Michiel Brandenburg, Nate Potter, Romain Tartière, Stephen Benjamin, and Steve Moore, as well as anyone contributing in the code review process and by submitting issues. 104 105 Special thanks to [Voxpupuli's](https://voxpupuli.org/) Igor Galić for donating the puppet-tea types to kickstart this part of stdlib. 106 107 108 #### Deprecations 109 * `validate_absolute_path`, `validate_array`, `validate_bool`, `validate_hash`, `validate_integer`, `validate_ip_address`, `validate_ipv4_address`, `validate_ipv6_address`, `validate_numeric`, `validate_re`, `validate_slength`, `validate_string`, and their `is_` counter parts are now deprecated on Puppet 4. See the `validate_legacy()` description in the README for help on migrating away from those functions. 110 * The `dig` function is provided by core puppet since 4.5.0 with slightly different calling convention. The stdlib version can still be accessed as `dig44` for now. 111 112 113 #### Features 114 * Add Puppet 4 data types for Unix, and Windows paths, and URLs. 115 * Add `deprecation` function to warn users of functionality that will be removed soon. 116 * Add `validate_legacy` function to help with migrating to Puppet 4 data types. 117 118 * Add `any2bool` function, a combination of of `string2bool` and `num2bool`. 119 * Add `delete_regex` function to delete array elements matching a regular expression. 120 * Add `puppet_environmentpath` fact to expose the `environmentpath` setting. 121 * Add `regexpescape` function to safely insert arbitrary strings into regular expressions. 122 * Add `shell_escape`, `shell_join`, and `shell_split` functions for safer working with shell scripts.. 123 124 * The `delete` function now also accepts regular expressions as search term. 125 * The `loadyaml` function now accepts a default value, which is returned when there is an error loading the file. 126 127 #### Bugfixes 128 * Fix `file_line.match_for_absence` implementation and description to actually work. (MODULES-3590) 129 * Fix `getparam` so that it can now also return `false`. (MODULES-3933) 130 * Fix the fixture setup for testing and adjust `load_module_metadata` and `loadjson` tests. 131 * Fix `defined_with_params` to handle `undef` correctly on all puppet versions. (PUP-6422, MODULES-3543) 132 * Fix `file_line.path` validation to use puppet's built in `absolute_path?` matcher. 133 134 #### Minor Improvements 135 * README changes: improved descriptions of `deep_merge`, `delete`, `ensure_packages`, `file_line.after`, `range`, and `validate_numeric`. 136 * The `getvar` function now returns nil in all situations where the variable is not found. 137 * Update the `dig44` function with better `undef`, `nil`, and `false` handling. 138 * Better wording on `str2bool` argument validation error message. 139 140 141 ### Known issues 142 * The `validate_legacy` function relies on internal APIs from Puppet 4.4.0 (PE 2016.1) onwards, and doesn't work on earlier versions. 143 * Puppet 4.5.0 (PE 2016.2) has a number of improvements around data types - especially error handling - that make working with them much nicer. 144 1 145 ## Supported Release 4.12.0 2 146 ###Summary
Note:
See TracChangeset
for help on using the changeset viewer.
