Browse Source

Revert "Do not alias CharacterArray."

This reverts commit 5bf6c17d
Herby Vojčík 5 years ago
parent
commit
170858ac5f
3 changed files with 4 additions and 2 deletions
  1. 1 1
      CHANGELOG
  2. 1 1
      lang/API-CHANGES.txt
  3. 2 0
      lang/base/kernel-runtime.js

+ 1 - 1
CHANGELOG

@@ -5,7 +5,7 @@
 * Remove kernel-level deprecations.
 * Flatter Collection hierarchy with traits, remove IndexableCollection class.
 * Remove some old IE8 cruft.
-* Push CharacterArray down to String and remove it.
+* Push CharacterArray down, make it and alias to String and deprecate it.
 
 Commits: https://lolg.it/amber/amber/commits/0.23.0
 

+ 1 - 1
lang/API-CHANGES.txt

@@ -2,7 +2,7 @@
 
 * Remove class IndexableCollection, trait TKeyValueCollection.
 * Merge CharacterArray class into String class
-* Remove CharacterArray class
+* Deprecate CharacterArray class
 * Deprecate Collection >> copyWithAll:, #, is enough.
 
 - Array >>

+ 2 - 0
lang/base/kernel-runtime.js

@@ -158,6 +158,8 @@ define(function () {
         this.__init__ = function () {
             st.alias(globals.Array, "OrderedCollection");
             st.alias(globals.Date, "Time");
+            // TODO deprecated, remove
+            st.alias(globals.String, "CharacterArray");
         }
     }