Migrating to 1.0
@lonca/core, @lonca/trendyol and @lonca/hepsiburada reached 1.0 on 30 August 2026, @lonca/n11 on 16 October 2026. This page collects what an upgrade from 0.x involves. Every item comes from the package changelogs and links to the release that made the change: 1.x releases to the release notes, 0.x releases to each package’s CHANGELOG.md on GitHub.
The short answer
Section titled “The short answer”If you are on the last 0.x release of each package, nothing changes. Each 1.0.0 has the same public API as the release before it:
| Package | Last 0.x | First 1.x | Code changes |
|---|---|---|---|
@lonca/core |
0.7.0 | 1.0.0 | None |
@lonca/trendyol |
0.15.1 | 1.0.0 | None |
@lonca/hepsiburada |
0.13.1 | 1.0.0 | None |
@lonca/n11 |
0.4.0 | 1.0.0 | None |
One behaviour changed in @lonca/trendyol 1.0.0: webhooks.* now calls Trendyol’s documented /integration/webhook/sellers/{sellerId}/webhooks path. The old /integration/sellers/{sellerId}/webhooks path is not routed on production (the gateway answers 556). You change nothing; webhook calls that failed on production now work.
Upgrade the packages you use:
pnpm add @lonca/core@^1 @lonca/trendyol@^1 @lonca/hepsiburada@^1From 1.0 on, breaking changes ship only in major versions and deprecated APIs keep working until the next major. See Stability & versioning.
Coming from an older 0.x
Section titled “Coming from an older 0.x”If you skipped releases, these are the changes you could trip over, newest first. Purely additive changes (new methods, new optional fields) are left out.
@lonca/core
Section titled “@lonca/core”- CommonJS type resolution (1.0.0). The
exportsmaps declare types per condition:importresolvesdist/index.d.ts,requireresolvesdist/index.d.cts. The same fix shipped for the SDKs, including their./testingsubpath, in@lonca/trendyol0.15.1 and@lonca/hepsiburada0.13.1. Runtime behaviour is unchanged. moneyFromMajorrounds in decimal space (0.5.0).moneyFromMajor(1.255, TRY)is now126(was125) and1.005is101(was100). Non-finite input throws aTypeErrorinstead of producingNaN.- Writes are not retried on ambiguous failures (0.4.0). A
POST/PUT/PATCH/DELETEthat times out, gets a 5xx, or hits a network error is no longer retried, because it may already have been applied. Only 429 is retried for writes;GETretries as before. ARetry-After: 0header no longer causes an immediate retry.
@lonca/trendyol
Section titled “@lonca/trendyol”-
Typed mutation results (0.15.0, 0.14.0). No method returns
Promise<unknown>any more. Where Trendyol documents a body, you get a typed result (webhooks.create→CreateWebhookResult,questions.answer→AnswerQuestionResult,videos.create→CreateVideoResult,testOrders.create→CreateTestOrderResult); everything else returnsMutationResult. All of them carry the untouched body on.raw:const body = (await client.claims.create(input)) as MyClaimResponse;const body = (await client.claims.create(input)).raw; -
Non-JSON 401/403 is an
AuthError(0.15.0). A 401/403 with an HTML or text body, such as the block page from the stage IP allowlist, used to be aValidationError. If you caught that case asValidationError, catchAuthError. -
Finance needs
transactionType(0.13.0).finance.getSettlementsandgetOtherFinancialsthrowValidationErrorwithout it (Trendyol answers 500), andlimitis clamped to 500 or 1000 (default 500). -
Location lookups take
id, notcode(0.13.0).City,DistrictandNeighborhoodexposeid, and the district/neighborhood lookups key off it:await client.locations.getTurkeyDistricts(city.code);await client.locations.getTurkeyDistricts(city.id); -
The 10,000-record cap on
orders.list(0.11.0, 0.11.1). A request past the cap throwsValidationError, andpaginate()stops at the cap instead of throwing mid-loop. Useorders.listStream()for full scans. -
inventory.updatethrows when no batch id comes back (0.10.0). You get aServerErrorinstead of{ batchRequestId: '' }. -
Resource constructors lost the
sellerIdargument (0.8.0). This only matters if you build resources yourself;createTrendyolClientusers are unaffected.new OrdersResource(transport, sellerId, limiter)new OrdersResource(transport, limiter) -
integratorNameis required (0.7.0). It used to default to'SelfIntegration'; pass it explicitly.
@lonca/hepsiburada
Section titled “@lonca/hepsiburada”-
Catalog lists return an
OffsetPage(0.13.0).catalog.listProductsandcatalog.listProductsByStatusreturnOffsetPage<CatalogProduct>instead of an array:const rows = await client.catalog.listProducts();const rows = (await client.catalog.listProducts()).items; -
listProductsByStatusrequiresstatus(0.13.0). Before 0.13.0 every call failed with HTTP 500, because the SDK sent the wrong query parameter.statusis now required (missing →ValidationError) and must use Hepsiburada’s UPPER_SNAKE values ('MATCHED','WAITING', …). The'Active'/'WaitingApproval'values documented earlier were never accepted. -
Five resources moved to their real hosts (0.13.0).
accounting,suppliers,questions,promotionsandproductUpdatesused to go throughoms-external, where every call failed with 401/404. They now reach their own services and can return data, or real errors such as a supplier-enrollment 404. Request shapes changed with them:questions.list()pages withpage/sizeand filters withminCreatedAt/maxCreatedAt. The oldoffset/limit/beginDate/endDatestill work as deprecated aliases.accounting.listTransactions()needs either an identifier filter or a date range of at most one month.beginDate/endDateare deprecated aliases oforderDateStart/orderDateEnd.promotions.listDiscounts()sendspage/pagesize(defaults1/100).
-
Typed mutation results (0.13.0, 0.12.0). No method returns
Promise<unknown>any more.orders.createPackagesreturns aPackageReceipt, thepromotions.create*Discountmethods aDiscountReceipt, the supplier searches aSupplierSearchResult, and actions without a documented body aMutationResult. The migration is the same one line as for Trendyol:(await x) as Tbecomes(await x).raw, or read the typed fields. -
categories.listis anOffsetPagetoo (0.13.0).CatalogPage<T>extendsOffsetPage<T>. The Spring fields are still there but deprecated:.data→.items,.totalElements→.totalCount,.totalPages→.pageCount. -
CatalogProduct.idis optional (0.13.0). It used to be an''placeholder; guard withif (product.id)where you relied on the empty string. -
Reads that returned
[]now return rows (0.11.0).catalog.listProducts/listProductsByStatus,shipping.getCargoFirms/listProfilesandcategories.getAttributesdropped every row because of unhandled response envelopes.getAttributesnow flattens Hepsiburada’s three attribute buckets into one list, each tagged withgroup.claims.list/listByStatusdefaultoffset/limitto0/100. -
listings.listreturns anOffsetPage(0.9.0):const { listings } = await client.listings.list({ offset: 0, limit: 100 });const { items: listings } = await client.listings.list({ offset: 0, limit: 100 }); -
Fixed 403 error message (0.9.2). The
AuthErrorfor a 403 carries a fixed message instead of echoing the server’s; the body stays onerror.data/cause. Code that matched on the server’s message text needs updating. -
Export cleanup (0.7.0).
parseWebhookEventis the canonical name;parseHepsiburadaWebhookEventis a deprecated alias.HepsiburadaTransport,RequestOptions,TransportConfigandHepsiburadaServiceare no longer exported.
@lonca/n11
Section titled “@lonca/n11”Every 0.x release only added to the API (resources, methods and fields), so code written against any 0.x release runs unchanged on 1.0. What 0.x added, release by release, is in CHANGELOG.md.
Deprecated in 1.x
Section titled “Deprecated in 1.x”These still work and stay until the next major. Most are fields the marketplace never sends, so they were always undefined or filled from the real field. Your editor shows them struck through.
@lonca/core: nothing deprecated.
@lonca/trendyol
- 1.2.2:
ShipmentPackage.whoPays. - 1.2.0:
Neighborhood.codeanddistrictCode,District.cityCode,SupplierAddress.nameandfullName(usefullAddress),CategoryAttribute.values(usecategories.getAttributeValues). - From 0.x:
SettlementRowandOtherFinancialRow, aliases ofFinancialTransaction(0.6.0).
@lonca/hepsiburada
- 1.2.0:
Question.number,productSkuandcreatedDate(useissueNumber,product.sku,createdAt);Question.textandanswer(readconversations). - 1.1.0:
Order.externalOrderNumber,modifiedDateandtotal;AccountingTransaction.transactionId,type,amount,currencyandtransactionDate; 15CatalogProductfields Hepsiburada never sends (id,createdAt,modifiedAt,productQuality,fields, …);CategoryAttribute.externalNameandvalues(usecategories.getAttributeValues). - From 0.x:
parseHepsiburadaWebhookEvent, theOrdersPageandListingsPagetype aliases (useOffsetPage), the Spring fields onCatalogPage, thequestions.listandaccounting.listTransactionsparameter aliases above, andListProductsByStatusParams.modifiedAtSince, which is no longer sent.
The changelog entry for each version lists the replacement for every deprecated field.
Unofficial. Lonca is an independent, community-maintained project — not affiliated with, endorsed by, or supported by Trendyol, Hepsiburada, or any other marketplace. All marketplace names and trademarks belong to their respective owners.