API-CHANGES.txt 13 KB

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