Articles by Apoorv Tiwari

Cypress version 8.5.0 adds select by index

Cypress introduced the feature to select an option by index within the .select() command.

ECMAScript 2021 introduces Promise.any() and AggregateError

ECMAScript 2021 introduces Promise.any() method which accepts an iterable of promises and waits for the first promise to fulfill, and its result becomes the outcome. If all the passed promises are rejected, it returns an AggregateError.

ECMAScript 2021 introduces replaceAll method and numeric separators

ECMAScript 2021 introduces the replaceAll() method to replace all occurrences of a substring in a string with another string and numeric separators to allow a separator character between digits.

Rails 7 provides context when logging unpermitted parameters

Rails 7 enables passing context to ActionController::Parameters providing more information to the developer.

Rails 7 enables scoping to apply to all queries

Rails 7 allows passing all_queries option to the scoping method. This change allows the scoping method to work on all queries for a model in a block.