API-CHANGES.txt 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718
  1. 0.19.0:
  2. * Remove class Thenable, add trait TThenable.
  3. 0.18.3:
  4. * Move {add,remove}Element from Array.prototype to kernel API.
  5. * New superclass of Behavior named BehaviorBody, pushed up some methods.
  6. * Represents named holder of methods; hierarchy and instantiation left to Behavior.
  7. * Add class Trait as subclass of BehaviorBody.
  8. * Add class TraitTransformation.
  9. * Deprecate #asJSON in favour of #asJavaScriptObject.
  10. * Deprecate #asJavascript in favour of #asJavaScriptSource.
  11. + BehaviorBody >>
  12. + setTraitComposition:
  13. + traitCompositionDefinition
  14. + traitUsers
  15. + allSubclassesDo:
  16. + superclass
  17. + Trait
  18. + allInstanceVariableNames
  19. + allSubclassesDo:
  20. + asJavascript
  21. + asTraitComposition
  22. + category
  23. + classTag
  24. + definition
  25. + package
  26. + superclass
  27. + theMetaClass
  28. + theNonMetaClass
  29. + exportBehaviorDefinitionTo:using:
  30. + traitUsers
  31. + package:
  32. + Trait class >>
  33. + named:package:
  34. + named:uses:package:
  35. + TraitTransformation
  36. + -
  37. + @
  38. + addAliases:
  39. + addExclusions:
  40. + aliases
  41. + asJSON
  42. + asJavascript
  43. + asTraitComposition
  44. + asTraitTransformation
  45. + definition
  46. + exclusions
  47. + initialize
  48. + postCopy
  49. + trait
  50. + trait:
  51. + Collection >>
  52. + copyWithout:
  53. + SequenceableCollection >>
  54. + reverseDo:
  55. + Array >>
  56. + asTraitComposition
  57. + amber/boot api >>
  58. + addElement
  59. + removeElement
  60. + wrapJavaScript
  61. + CharacterArray >>
  62. + asSymbolPrintOn:
  63. + symbolPrintString
  64. + String >>
  65. + isSelector
  66. + StringStream >>
  67. + print:
  68. + printSymbol:
  69. + Package >>
  70. + traitCompositions
  71. + Class >>
  72. + subClass:
  73. + subClass:uses:
  74. + subClass:uses:instanceVariables:
  75. + subClass:uses:instanceVariables:category:
  76. + subClass:uses:instanceVariables:classVariables:poolDictionaries:category:
  77. + subClass:uses:instanceVariables:package:
  78. + UndefinedObject >>
  79. + subClass:
  80. + subClass:uses:
  81. + subClass:uses:instanceVariables:
  82. + subClass:uses:instanceVariables:category:
  83. + subClass:uses:instanceVariables:classVariables:poolDictionaries:category:
  84. + subClass:uses:instanceVariables:package:
  85. + Metaclass >>
  86. + uses:instanceVariableNames:
  87. - Association >>
  88. - importsString
  89. - String >>
  90. - importsString
  91. - AbstractExporter
  92. - classNameFor:
  93. - Exporter >>
  94. - jsClassNameFor:
  95. 0.18.2:
  96. * Add Platform-DOM package with DOM-related stuff.
  97. * Platform-DOM not loaded by default. Packages that will use it will import it.
  98. + PlatformDom class >>
  99. + isFeasible
  100. + isDomNode:
  101. + newCustomEvent:detail:
  102. + toArray:
  103. + CharacterArray >>
  104. + asDomNode
  105. + Collection >>
  106. + asDomNode
  107. + JSObjectProxy
  108. + asDomNode
  109. + String
  110. + htmlTextContent
  111. 0.18.1:
  112. + ASTNode >>
  113. + withTail:
  114. - SendNode >>
  115. - valueWithReceiver:
  116. 0.18.0:
  117. * Remove class RethrowErrorHandler (hack for cli before 0.12.3).
  118. * Add Kernel-Dag package with abstract DAG-node and DAG-node visitor.
  119. * Some internal API changes in Compiler-* (including the move to DAG-node).
  120. - Object >>
  121. - throw:
  122. 0.17.0:
  123. * Remove classes InterfacingObject, PlatformInterface.
  124. * Deprecate $boot.nil (use $boot.nilAsReceiver).
  125. + amber/boot api >>
  126. + nilAsReceiver
  127. - NativeFunction class >>
  128. - constructor:
  129. - constructor:value:
  130. - constructor:value:value:
  131. - constructor:value:value:value:
  132. 0.16.1:
  133. * Deprecate $boot.dnu (use $boot.nilAsClass).
  134. + amber/boot api >>
  135. + nilAsClass
  136. 0.16.0:
  137. * Deprecate ClassBuilder >> setupClass:
  138. * $core.initialize now returns a Promise
  139. * $core.addClass now returns the class
  140. + amber/boot api >>
  141. + send2
  142. + traverseClassTree
  143. + Promise class >>
  144. + new
  145. - amber/boot api >>
  146. - wrapClassName
  147. - send
  148. - allSubclasses
  149. - AbstractCodeGenerator
  150. - classNameFor:
  151. 0.15.1:
  152. * Thenable class added
  153. * Promise class added, wraps JS Promise, subclass of Thenable
  154. + Thenable >>
  155. + catch:
  156. + on:do:
  157. + on:do:catch:
  158. + then:
  159. + then:catch:
  160. + then:on:do:
  161. + then:on:do:catch:
  162. + JSObjectProxy >>
  163. + catch:
  164. + on:do:
  165. + on:do:catch:
  166. + then:
  167. + then:catch:
  168. + then:on:do:
  169. + then:on:do:catch:
  170. + amber/boot api
  171. + seamless
  172. + Promise class >>
  173. + new:
  174. + forBlock:
  175. + value:
  176. + signal:
  177. + all:
  178. + any:
  179. 0.14.18:
  180. * Some internal API changes in Compiler-*.
  181. 0.14.14:
  182. * InterfacingObject >> ajax: deprecated
  183. * PlatformInterface class deprecated
  184. * Class BrowserInterface removed
  185. * Class Terminal, BrowserTerminal added
  186. * Class Platform, BrowserPlatform added
  187. + Environment >>
  188. + renamePackage:to:
  189. + Platform class >>
  190. + globals
  191. + newXhr
  192. + Terminal class >>
  193. + alert:
  194. + confirm:
  195. + prompt:
  196. + prompt:default:
  197. SmalltalkImage >>
  198. + existsJsGlobal:
  199. - PlatformInterface class >>
  200. - initialize
  201. - setWorker:
  202. 0.14.12:
  203. + JSObjectProxy >>
  204. + putOn:
  205. + ProtoStream >>
  206. + nextPutJSObject:
  207. 0.14.11:
  208. * Basic streaming protocol extracted from Stream to ProtoStream
  209. + Object >>
  210. + in:
  211. + JSObjectProxy >>
  212. + in:
  213. 0.14.10:
  214. + JSObjectProxy class >>
  215. + addObjectVariablesTo:ofProxy:
  216. + compareJSObjectOfProxy:withProxy:
  217. + forwardMessage:withArguments:ofProxy:
  218. + jsObject:ofProxy:
  219. + lookupProperty:ofProxy:
  220. - JSObjectProxy >>
  221. - jsObject:
  222. - lookupProperty:
  223. - compareJSObjectWith:
  224. - addObjectVariablesTo:
  225. - forwardMessage:withArguments:
  226. 0.14.4:
  227. + AmdExporter >>
  228. + importsForOutput:
  229. + AbstractCodeGenerator >>
  230. + currentPackage
  231. + currentPackage:
  232. + Compiler >>
  233. + currentPackage
  234. + currentPackage:
  235. + compile:forClass:protocol:
  236. + compileNode:forClass:package:
  237. + SemanticAnalyzer >>
  238. + thePackage
  239. + thePackage:
  240. + isVariableUndefined:inPackage:
  241. - Compiler >>
  242. - compile:
  243. - compile:forClass:
  244. - compileExpression:
  245. - SemanticAnalyzer >>
  246. - isVariableGloabllyUndefined:
  247. - Behavior >>
  248. - compile:
  249. 0.14.3:
  250. * #heliosClass is now #classTag
  251. + Compiler >>
  252. + eval:forPackage:
  253. + Behavior >>
  254. + packageOfProtocol:
  255. + Exporter >>
  256. + exportPackageContextOf:on:
  257. + exportPackageImportsOf:on:
  258. + Package >>
  259. + basicImports
  260. + imports
  261. + imports:
  262. + importsDefinition
  263. + importsFromJson:
  264. + importsAsJson
  265. + sortedImportsAsArray
  266. + validateImports:
  267. + Package class >>
  268. + named:imports:transport:
  269. + Association >>
  270. + importsString
  271. + String >>
  272. + importsString
  273. + ProtoObject >>
  274. + ifNil:
  275. + ifNil:ifNotNil:
  276. + ifNotNil:
  277. + ifNotNil:ifNil:
  278. + isNil
  279. + notNil
  280. - Object >>
  281. - ifNil:
  282. - ifNil:ifNotNil:
  283. - ifNotNil:
  284. - ifNotNil:ifNil:
  285. - isNil
  286. - notNil
  287. 0.14.1:
  288. * NativeFunction class >> constructor:[value:...] deprecated
  289. + NativeFunction class >>
  290. + constructorNamed:
  291. + constructorNamed:value:
  292. + constructorNamed:value:value:
  293. + constructorNamed:value:value:value:
  294. + constructorOf:
  295. + constructorOf:value:
  296. + constructorOf:value:value:
  297. + constructorOf:value:value:value:
  298. + functionNamed:
  299. + functionNamed:value:
  300. + functionNamed:value:value:
  301. + functionNamed:value:value:value:
  302. + functionNamed:valueWithArgs:
  303. + functionOf:
  304. + functionOf:value:
  305. + functionOf:value:value:
  306. + functionOf:value:value:value:
  307. + functionOf:valueWithArgs:
  308. + methodOf:this:
  309. + methodOf:this:value:
  310. + methodOf:this:value:value:
  311. + methodOf:this:value:value:value:
  312. + methodOf:this:valueWithArgs:
  313. + SmalltalkImage >>
  314. + optOut:
  315. + cancelOptOut:
  316. 0.14.0:
  317. + Object >>
  318. + asJQuery
  319. + asJQueryInContext:
  320. + BlockClosure >>
  321. + asJQuery
  322. + asJQueryInContext:
  323. - AnnouncementSubscription >>
  324. - block
  325. - block:
  326. - Collection >>
  327. - contains:
  328. - String >>
  329. - asSelector
  330. - asJavaScriptSelector
  331. - SmalltalkImage >>
  332. - at:
  333. - at:ifAbsent:
  334. - at:put:
  335. - current
  336. - vm
  337. - createPackage:properties:
  338. - MethodContext >>
  339. - temps
  340. - Object >>
  341. - try:catch:
  342. 0.13.2:
  343. + SourceArea class >>
  344. + codeMirror
  345. 0.13.1:
  346. * String >> asSelector is now String >> asJavaScriptMethodName
  347. * String >> asJavaScriptSelector is now String >> asJavaScriptPropertyName
  348. * smalltalk.selector is now smalltalk.st2js
  349. * smalltalk.convertSelector is now smalltalk.js2st
  350. * Collection >> ifEmpty:ifNotEmpty: family passes self to ifNotEmpty: block
  351. * Smalltalk vm is now Smalltalk core
  352. * boot.js's .vm is now .api
  353. * amber load sets' .vm is now .api
  354. * Internal variables smalltalk/globals/_st are now $core/$globals/$recv
  355. + smalltalk.
  356. + accessJavaScript
  357. + Object >>
  358. + postMessageTo:
  359. + postMessageTo:origin:
  360. + Class >>
  361. + heliosClass
  362. + SmalltalkImage >>
  363. + core
  364. + amber/boot exports
  365. + api
  366. + amber/{devel,deploy,lang} exports
  367. + api
  368. - ProtoObject class >>
  369. - heliosClass
  370. - Object class >>
  371. - heliosClass
  372. 0.12.6:
  373. + String >>
  374. + value:
  375. + ProtocolAnnouncement >>
  376. + package
  377. + Behavior >>
  378. + isTestClass
  379. + Package >>
  380. + isTestPackage
  381. + amber/{devel,deploy,lang} exports
  382. + nil
  383. + amber/helpers exports
  384. + nil
  385. 0.12.4:
  386. * Package Canvas renamed to Web
  387. * Object >> try:catch: deprecated in favour of BlockClosure >> tryCatch:
  388. + Announcer >>
  389. + on:do:for:
  390. + Node >>
  391. + navigationNodeAt:ifAbsent:
  392. + BlockClosure >>
  393. + tryCatch:
  394. + Environment >>
  395. + evaluate:for:
  396. + AmberCli >>
  397. + version:
  398. + Object >>
  399. + deprecatedAPI:
  400. - Environment >>
  401. - eval:on:
  402. - evaluateString:on:
  403. 0.12.3:
  404. * Package Import-Export renamed to Kernel-ImportExport
  405. * A dozen of methods moved from Object to ProtoObject
  406. * HashedCollection >> at:ifAbsentPut: pushed up to SequenceableCollection
  407. * HashedCollection >> , is now allowed (removed shouldNotImplement)
  408. * HashedCollection and Dictionary both subclasses of AssociativeCollection
  409. * Smalltalk class moved to SmalltalkImage class, Smalltalk is now global var
  410. * Smalltalk current deprecated in favour of Smalltalk
  411. * Smalltalk at:[put:] deprecated in favour of Smalltalk globals at:[put:]
  412. * <smalltalk.ClassName> deprecated in favour of <globals.ClassName>
  413. + CompiledMethod >>
  414. + defaultProtocol
  415. + Behavior >>
  416. + compile:protocol:
  417. + removeProtocolIfEmpty:
  418. + Package >>
  419. + load
  420. + loadFromNamespace:
  421. + Package class >>
  422. + load:
  423. + load:fromNamespace:
  424. + PackageTransport >> load
  425. + PackageHandler >> load:
  426. + AmdPackageHandler >> load:
  427. + Set >> removeAll
  428. + AssociativeCollection class
  429. + BucketStore class
  430. + SmalltalkImage >>
  431. + globals
  432. + vm
  433. + settings
  434. + Setting class
  435. + String >>
  436. + asSetting
  437. + asSettingIfAbsent:
  438. + settingValue
  439. + settingValueIfAbsent:
  440. + settingValue:
  441. + Smalltalk global variable
  442. - CompiledMethod >>
  443. - category: (use #protocol:)
  444. - defaultCategory
  445. - Behavior >> compile:category:
  446. - HTMLCanvas class >>
  447. - browserVersion
  448. - isMSIE
  449. - isMozilla
  450. - isOpera
  451. - isWebkit
  452. 0.12.2:
  453. * Collection >> contains: is deprecated in favor of anySatisfy:
  454. + Announcer >> on:doOnce:
  455. + String >>
  456. + uriEncoded
  457. + uriDecoded
  458. + uriComponentEncoded
  459. + uriComponentDecoded
  460. + Collection >>
  461. + removeAll
  462. + ifEmpty:ifNotEmpty:
  463. + ifNotEmpty:ifEmpty:
  464. + anyOne
  465. + noneSatisfy:
  466. + anySatisfy:
  467. + allSatisfy:
  468. 0.12.0:
  469. * SmalltalkMethodContext.prototype.fillBlock() takes a third 'index' parameter
  470. * Existing classes moved to new KernelInfrastructure package
  471. * ImporterExporter
  472. * are now StreamExporters
  473. * aware of AMD namespaces
  474. * support transport types and commit channels
  475. + Node >>
  476. + nextChild
  477. + method
  478. + postCopy
  479. + isCascadeNode
  480. + isLastChild
  481. + BlockNode >>
  482. + nextNode:
  483. + nextChild
  484. + SendNode >>
  485. + isCascadeSendNode
  486. + shouldBeAliased
  487. + CompiledMethod >> sendTo:arguments:
  488. + Array >>
  489. + addFirst:
  490. + removeLast
  491. + Number >>
  492. + ceiling
  493. + floor
  494. + asNumber
  495. + //
  496. + cos
  497. + sin
  498. + tan
  499. + arcCos
  500. + arcSin
  501. + arcTan
  502. + log
  503. + log:
  504. + raisedTo:
  505. + sign
  506. + **
  507. + ln
  508. + e
  509. + String class >> esc
  510. + String >>
  511. + asMutator
  512. + capitalized
  513. + isCapitalized
  514. + JSProxy >> printString
  515. + Behavior >>
  516. + ownProtocols
  517. + ownMethods
  518. + JSStream >> nextPutSendIndexFor:
  519. + InterfacingObject class
  520. + Interpreter class
  521. + DocumentFragmentTag class
  522. + AbstractExporter class
  523. + PlatformInterface class
  524. - Node >> extent
  525. - JSStream >> nextPutStatement:with:
  526. - Smalltalk.installSuperclass()
  527. - ClassReferenceNode class (now handled via VariableNode)
  528. 0.11.0:
  529. * AnnouncementSubscription use #valuable: instead of #block: (deprecated)
  530. * AbstractCodeGenerator inherits from Object, not NodeVisitor
  531. * Object>>printString
  532. * replace >>printString with >>printOn:
  533. * replace >>storeString with >>printString
  534. * PackageLoader is now PackageHandler (>>commit: >>setupPackagenamed:prefix: >>ajaxPutAt:data:
  535. * Package>>fetch: is now Package>>load:
  536. * Package>>fetch:prefix: is now Package>>load:prefix:
  537. * Queue>>front replaced by Queue>>next
  538. * Queue>>frontIfAbsent: replaced by Queue>>nextIfAbsent:
  539. * Queue>>back: replaced by Queue>>nextPut:
  540. * smalltalk.addMethod() does not use explicit JS selector
  541. * JSObjectProxy>>canForwardMessage: replaced by use of JSObjectProxy>>lookupProperty: with asJavaScriptSelector
  542. * JSObjectProxy>>forwardMessage: replaced by explicit JSObjectProxy>>forwardMessage:withArguments:
  543. * String>>asJavaScriptSelector moved to Kernel-Objects package
  544. + Object>>asString
  545. + Object>>putOn:
  546. + String>>isVowel
  547. + Collection>>putOn:
  548. + CharacterArray>>putOn:
  549. + Stream>><<
  550. + Stream>>write
  551. + SequenceableCollection>>newStream
  552. + SequenceableCollection>>readStream
  553. + SequenceableCollection>>stream
  554. + SequenceableCollection>>streamClass
  555. + SequenceableCollection>>writeStream
  556. + Collection>>isImmutable
  557. + Stream>>nextPutString:
  558. + StringStream>>nextPutString:
  559. + JSStream>>nextPutClassRefFunction:
  560. + String>>crlfSanitized
  561. + inlined Block now also responds to >>value:
  562. + Parser: split literal into runtimeLiteral and parseTimeLiteral
  563. + Parser: write #(4 #(5 6 #()) 7) as #(4 (5 6 ()) 7)
  564. + Parser: write #(#on:do: #Object) as #(on:do: Object)
  565. + Parser: Symbols for binarie selectores
  566. + Package>>commit
  567. + AIContext>>initializeLocals
  568. + ASTInterpreter>>withBlockContext:
  569. + smalltalk.allSelectors()
  570. + Object>>isCompiledMethod
  571. + Object>>isPackage
  572. + Object>>isBehavior
  573. + ClassMoved Announcemen class
  574. + Behavior>>includesBehavior:
  575. + Environment>>classes
  576. + Environment>>allSelectors
  577. + Environment>>removeProtocol:
  578. + Environment>>renameProtocol:to:in:
  579. + CompiledMethod>>protocol:
  580. + Smalltalk>>globalJsVariables
  581. + Smalltalk>>addGlobalJsVariable:
  582. + Smalltalk>>deleteGlobalJsVariable:
  583. - Object>>storeOn:
  584. - Object>>log:block:
  585. - Object>>printNl
  586. - Compiler-IR.st >>javascriptSelector
  587. - Compiler-IR.st >>nextPutVar:
  588. - Kernel-Collections.st >>asSuperSelector
  589. - Collection>>readStream
  590. - Collection>>stream
  591. - Collection>>streamClass
  592. - Collection>>writeStream
  593. - Symbol class (replaced with String)
  594. - IRInlinedNonLocalReturn class
  595. - IRInlinedSend>>nonLocalReturnInliner
  596. - IRNonLocalReturnInliner class
  597. - Package>>dependencies
  598. - Package>>dependencies:
  599. - Package>>properties
  600. - Package>>jsProperties
  601. - Package>>jsProperties:
  602. - Package>>propertiesAsJSON
  603. - Package>>propertyAt:
  604. - Package>>propertyAt:ifAbsent:
  605. - Package>>propertyAt:put:
  606. - Browser>>ajaxPutAt:data: