Change how the TC sugar bits work so that the arguments are
[gitmo/Moose.git] / Changes
diff --git a/Changes b/Changes
index a2c7129..0d0db26 100644 (file)
--- a/Changes
+++ b/Changes
@@ -9,13 +9,20 @@ Revision history for Perl extension Moose
       - A new recipe, applying a role to an object instance. (Dave
         Rolsky)
 
-    * Moose::Util::TypeConstraints::Optimized
-      - Just use Class::MOP for the optimized ClassName check. (Dave
-        Rolsky)
-
     * Moose::Exporter
       - Allow overriding specific keywords from "also" packages. (doy)
 
+    * Moose::Util::TypeConstraints
+      - Calling type or subtype without the sugar helpers (as, where,
+        message) is now deprecated.
+      - The subtype function tried hard to guess what you meant, but
+        often got it wrong. For example:
+
+         my $subtype = subtype as 'ArrayRef[Object]';
+
+        This caused an error in the past, but now works as you'd
+        expect.
+
     * Tests
       - Replace hardcoded cookbook tests with Test::Inline POD
         to ensure they don't get out of sync. (Dave Rolsky)
@@ -24,6 +31,10 @@ Revision history for Perl extension Moose
       - Working on the above turned up a number of little bugs in the
         recipe code. (Dave Rolsky)
 
+    * Moose::Util::TypeConstraints::Optimized
+      - Just use Class::MOP for the optimized ClassName check. (Dave
+        Rolsky)
+
 0.70 Sat, February 14, 2009
     * Moose::Util::TypeConstraints
       - Added the RoleName type (stevan)