diff options
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | DOC_CHANGES.md | 13 |
2 files changed, 4 insertions, 10 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 73fa049737..a933d1b70a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,7 +26,6 @@ * [pr#3295](https://github.com/chef/chef/pull/3295): Stop mutating `new_resource.checksum` in file providers. Fixes some ChecksumMismatch exceptions like [issue#3168](https://github.com/chef/chef/issues/3168) * [pr#3320] Sanitize non-UTF8 characters in the node data before doing node.save(). Works around many UTF8 exception issues reported on node.save(). * Implemented X-Ops-Server-API-Version with a API version of 0, as well as error handling when the Chef server does not support the API version that the client supports. -<<<<<<< HEAD * [pr#3327](https://github.com/chef/chef/pull/3327): Fix unreliable AIX service group parsing mechanism. * [pr#3333](https://github.com/chef/chef/pull/3333): Fix SSL errors when connecting to private Supermarkets * [pr#3340](https://github.com/chef/chef/pull/3340): Allow Event diff --git a/DOC_CHANGES.md b/DOC_CHANGES.md index b9602909d1..31ea79f3d9 100644 --- a/DOC_CHANGES.md +++ b/DOC_CHANGES.md @@ -19,18 +19,13 @@ module MyModule end ``` -Users are encouraged to declare resources in their own namespaces instead of putting them in the special `Chef::Resource` namespace. +Authors of HWRPs need to be aware that in the future all resources and providers will be required to include a provides line. Starting with Chef 12.4.0 any HWRPs in the `Chef::Resource` or `Chef::Provider` namespaces that do not have provides lines will trigger deprecation warning messages when called. The LWRPBase code does `provides` automatically so LWRP authors and users who write classes that inherit from LWRPBase do not need to explicitly include provides lines. -The `Chef::Resource` namespace will no longer get automatic DSL in a future Chef, and will emit a deprecation warning in Chef 12. +Users are encouraged to declare resources in their own namespaces instead of putting them in the special `Chef::Resource` namespace. -### LWRPs are no longer placed in the `Chef::Resource` namespace +### LWRPs are no longer automatically placed in the `Chef::Resource` namespace -Additionally, resources declared as LWRPs are no longer placed in the -`Chef::Resource` namespace. This means that if your cookbook includes the LWRP -`mycookbook/resources/myresource.rb`, you will no longer be able to extend or -reference `Chef::Resource::MycookbookMyresource` in Ruby code. LWRP recipe DSL -does not change: the LWRP will still be available to recipes as -`mycookbook_myresource`. +Starting with Chef 12.4.0, accessing an LWRP class by name from the `Chef::Resource` namespace will trigger a deprecation warning message. This means that if your cookbook includes the LWRP `mycookbook/resources/myresource.rb`, you will no longer be able to extend or reference `Chef::Resource::MycookbookMyresource` in Ruby code. LWRP recipe DSL does not change: the LWRP will still be available to recipes as `mycookbook_myresource`. You can still get the LWRP class by calling `Chef::Resource.resource_matching_short_name(:mycookbook_myresource)`. |