API-CHANGES.txt 14 KB

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